lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran" <amo...@infosciences.com>
Subject Problem with Sort logic ?
Date Fri, 23 Jul 2004 17:19:43 GMT
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
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message