Hi Shivaraj, I would recommend John's approach and let Lucene deal with
the sorting.
Nonetheless, you can traverse through the terms by using the following
method:
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexReader.html#terms(org.apache.lucene.index.Term)
Basically, yo
Thanks John,
MatchAllDocsQuery works, however I was unable to locate an example for
traversing the term table. Could you please point me to one?
Regards,
Shivaraj
On Fri, Dec 5, 2008 at 4:35 AM, John Wang <[EMAIL PROTECTED]> wrote:
> The obvious way is to use use MatchAllDocsQuery with Sort
The obvious way is to use use MatchAllDocsQuery with Sort parameters on the
searcher, e.g.
searcher.search(new MatchAllDocsQuery(),sort);
If you only care about 1 sort spec (e.g. no secondary sort to break ties) it
may be faster just traversing the term table since that is already sorted.
-John