MultiPhraseQuery sums its own idf instead of Similarity.
--------------------------------------------------------

                 Key: LUCENE-2879
                 URL: https://issues.apache.org/jira/browse/LUCENE-2879
             Project: Lucene - Java
          Issue Type: Bug
          Components: Query/Scoring
            Reporter: Robert Muir
            Assignee: Robert Muir
             Fix For: 2.9.5, 3.0.4, 3.1, 4.0


MultiPhraseQuery is a generalized version of PhraseQuery, and computes IDF the 
same way by default (by summing across the terms).

The problem is it doesn't let the Similarity do this: PhraseQuery calls 
Similarity.idfExplain(Collection<Term> terms, IndexSearcher searcher),
but MultiPhraseQuery just sums itself, calling Similarity.idf(int, int) for 
each term.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to