RE: Frequencies sorted by frequencies

2008-05-29 Thread Hider, Sandy
pache/lucene/search/Similar ity.html -Grant On May 28, 2008, at 10:48 AM, Hider, Sandy wrote: > Hi All, > I am trying to figure out a quick way to find the top N documents > sorted by frequency of a term. > > I found: > > IndexRead.termDocs() > > which provides an enu

Frequencies sorted by frequencies

2008-05-28 Thread Hider, Sandy
Hi All, I am trying to figure out a quick way to find the top N documents sorted by frequency of a term. I found: IndexRead.termDocs() which provides an enumeration of doc() and freq() but it returns an enumeration sorted by doc number. Is there a way to get the results sorted by freq? Or is