lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: how to sort the result by ignoring case in lucene
Date Tue, 25 Nov 2008 00:39:52 GMT

: You need to write your own sort comparator
: SortField(String field, SortComparatorSource comparator)

A much simpler approach is to index a lowercase version of the field.  
since fields used for sorting are typically copies of other existing 
fields anyway because they can't be tokenized, there's not much additional 
overhead.



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message