On Sun, Sep 25, 2011 at 1:35 PM, Jason Toy <jason...@gmail.com> wrote:
> Scoring seems to still be using an idf score that is not 1 and returning
> results sorted by rareness of a phrase instead of frequency of the word.

also keep in mind overriding idf(int, int) might not give you what you
want for phrase queries (since you said phrase in your email).

by default the idf of a phrase is computed by summing the IDF across
the terms...
so with your idf implementation the idf for a phrase would be equal to
the number of terms in that particular phrase

in lucene 3.4 to change how this is done you need to also override
idfExplain(Collection<Term> terms, Searcher searcher)

-- 
lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to