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

Avoid using positions when not all required terms are present

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • core/search

    Description

      In the Scorers of queries with (lots of) Phrases and/or (nested) Spans, currently next() and skipTo() will use position information even when other parts of the query cannot match because some required terms are not present.
      This could be avoided by adding some methods to Scorer that relax the postcondition of next() and skipTo() to something like "all required terms are present, but no position info was checked yet", and implementing these methods for Scorers that do conjunctions: BooleanScorer, PhraseScorer, and SpanScorer/NearSpans.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul.elschot@xs4all.nl Paul Elschot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: