Re: question about ScoreDocComparator

2007-03-06 Thread Ulf Dittmer
Well, I am using a Sort object ("Hits = Search.search(Query, Filter, Sort)" actually). In setting up the SortField array for that Sort object with a SortComparatorSource the issue comes up that I need to access the field value that is being used for sorting. Maybe that's just the way Lucene

Re: question about ScoreDocComparator

2007-03-04 Thread Erick Erickson
Maybe I'm missing something in turn, but why not just use a Sort object at search time? You can have a Hits object or TopFIeldDocs object returned (the Filter in some of these calls can be null). Best Erick On 3/1/07, Ulf Dittmer <[EMAIL PROTECTED]> wrote: Hello- One of the fields in my ind

question about ScoreDocComparator

2007-03-01 Thread Ulf Dittmer
Hello- One of the fields in my index is an ID, which maps to a full text description behind the scenes. Now I want to sort the search results alphabetically according to the description, not the ID. This can be done via SortComparatorSource and a ScoreDocComparator without problems. But t