[
https://issues.apache.org/jira/browse/SOLR-2745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098499#comment-13098499
]
Lance Norskog commented on SOLR-2745:
-------------------------------------
What kind of data do you want to store in these fields? What do you expect to
get when you sort on the field?
Fields named "*_dt" are datestamps. They are stored in a numerical format. Solr
should not even let you index non-dates into this field.
Fields named '*_t' are text fields. These are indexed, and sorting on them does
not make sense. It used to be that sorting would blow up if there were more
term facets (what you sort on) than documents. In recent Solr (trunk) this will
not blow up, but it still does not make sense.
> Sorting on a field whose name resembles an integer in scientific notation
> -------------------------------------------------------------------------
>
> Key: SOLR-2745
> URL: https://issues.apache.org/jira/browse/SOLR-2745
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 3.3
> Reporter: Joey
> Priority: Minor
>
> I have created a schema where the field names are in a uuid format eg:
> 1cf1691c0-a1a4-4255-8943-57d87c923e31_t. I am also implementing dynamic
> fields via the 'star underscore' format eg: *_t.
> Whenever I try and sort on a field name that has a format of one or more
> integers followed by an 'e', I get a NumberFormatException like the
> following: *java.lang.NumberFormatException: For input string: "8e"*. This
> particular error comes from trying to sort on a field name
> *8ecdced6f-3eb4-e508-4e7d-d40a86305096_dt*. If the field name started with
> 12345e, I would get an error *java.lang.NumberFormatException: For input
> string: "12345e"*.
> I'm not sure if this is a major issue or not but it is something that has
> appeared in our testing quite often. You would be surprised at how often
> randomly generated uuid's start with a number and then 'e'...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]