lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Problem with Sort logic ?
Date Fri, 23 Jul 2004 21:49:04 GMT
The term is used because it is *much* more efficient.  If you need to 
sort by an untokenized value, also index the field as a keyword, and 
don't store the tokenized version of the field.


Aviran wrote:
> When you set s SortField to a Text field which gets tokenized FieldCacheImpl
> uses the term to do the sort, but then sorting is off especially with more
> then one word in the field. I think it is much more logical to sort by
> field's string value (document(t).getField(field).stringValue()) instead of
> just the term, this way the result is sorted by the actual field's value and
> not the tokenized, analyzed term, which can be the identical for several
> different values.
> For Example:
> John R Smith = John Smith
> Thoughts ?
> Aviran

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message