[ https://issues.apache.org/jira/browse/LUCENE-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985335#action_12985335 ]
Doron Cohen commented on LUCENE-2879: ------------------------------------- bq. In my opinion this is an off-by-one Right, it would return 0.5 vs 1.0 in TermQuery. Perhaps similar issue with SpanNearQuery. (I guess this may be taken care of in LUCENE-2878.) > 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 > > Attachments: LUCENE-2879.patch > > > 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