Sorting on tokenized fields can work, but may not necessarily do what you expect, depending on your requirements and how the field is tokenized.
-- Ian. On Wed, Jun 9, 2010 at 4:35 PM, fujian <fujian.z.y...@nokia.com> wrote: > > > Hello, > > I'm using Lucene 2.9 and when reading java doc for the Sort class I noticed > it says "The field must be indexed, but should not be tokenized". > > But I tried to sort on a tokenized field, it works too. Just wondering > what's the difference between tokenized and untokenized in terms of sort? > Why in javadoc and "Lucene in Action" they all mention that the sort field > should not be tokenzied? > > Thanks, > -Fujian > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/sort-field-should-not-be-tokenized-tp882569p882569.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org