Re: Frequencies sorted by frequencies

2008-06-01 Thread Grant Ingersoll
the both the standard score and the TF-only Score in a single index? Sandy -Original Message- From: Grant Ingersoll [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 2:34 PM To: java-user@lucene.apache.org Subject: Re: Frequencies sorted by frequencies I think you could override al

RE: Frequencies sorted by frequencies

2008-05-29 Thread Hider, Sandy
] Sent: Wednesday, May 28, 2008 2:34 PM To: java-user@lucene.apache.org Subject: Re: Frequencies sorted by frequencies I think you could override all the Similarity factors except tf() with 1, such that the term frequency is the only factor in the scoring. Then you just submit the term as a

Re: Frequencies sorted by frequencies

2008-05-28 Thread Grant Ingersoll
I think you could override all the Similarity factors except tf() with 1, such that the term frequency is the only factor in the scoring. Then you just submit the term as a query. Note, I think you will need to override the similarity during indexing, too, so that norm length is turned of

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