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

Should DisjunctionScorer advance more lazily?

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Fixed
    • None
    • 5.5, 6.0
    • None
    • None
    • New

    Description

      Today if you call DisjunctionScorer.advance(X), it will try to advance all sub scorers to X. However, if DisjunctionScorer is being intersected with another scorer (which is almost always the case as we use BooleanScorer for top-level disjunctions), we could stop as soon as we find one matching sub scorer, and only advance the remaining sub scorers when freq() or score() is called.

      Attachments

        1. LUCENE-6815.patch
          10 kB
          Adrien Grand
        2. LUCENE-6815.patch
          17 kB
          Adrien Grand
        3. LUCENE-6815.patch
          18 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: