Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2879

MultiPhraseQuery sums its own idf instead of Similarity.

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • core/query/scoring
    • None
    • New, Patch Available

    Description

      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.

      Attachments

        1. LUCENE-2879.patch
          4 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: