[ https://issues.apache.org/jira/browse/SOLR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516307 ]
Hoss Man commented on SOLR-308: ------------------------------- a few misc comments... 1) ...val.startsWith("NEW")... seems like a bad idea, why not just val.equals("NEW") ? 2) classes like IntField and DateField don't currently do strong parsing validation in the toInternal method, but this UUIDFIeld class does ... should it? 3) should toObject be strongly typed to return UUID ? 4) there shouldn't be new methods in the output writers for this field type ... output writers should only need to know about the most primitive types of data that should be viable regardless of the client language (ie: string, int, float, date, list, etc...) the UUIDField should just write itself out as a string (using <str> in the xml response writer) > Add a field that generates an unique id when you have none in your data to > index > -------------------------------------------------------------------------------- > > Key: SOLR-308 > URL: https://issues.apache.org/jira/browse/SOLR-308 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Thomas Peuss > Priority: Minor > Attachments: UUIDField.patch, UUIDField.patch > > > This patch adds a field that generates an unique id when you have no unique > id in your data you want to index. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.