Re: how to sort the result by ignoring case in lucene

2008-11-24 Thread Chris Hostetter
: 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, ther

Re: how to sort the result by ignoring case in lucene

2008-11-20 Thread naveen.a
Hi Ganesh, I have already tried my own comparator, below is my code : SortComparator comparator = new SortComparator() { @Override protected Comparable getComparable(String arg0) { final String str = arg0; Co

Re: how to sort the result by ignoring case in lucene

2008-11-20 Thread Ganesh
You need to write your own sort comparator SortField(String field, SortComparatorSource comparator) Regards Ganesh - Original Message - From: "naveen.quill" <[EMAIL PROTECTED]> To: Sent: Friday, November 21, 2008 11:27 AM Subject: how to sort the result by ignoring case in lucene