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

BooleanScorer.nextDoc should also delegate to sub-scorer's bulk scoring method

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • core/search
    • None
    • New

    Description

      BooleanScorer uses the bulk score methods of its sub scorers, asking them to score each chunk of 2048 docs.

      However, its .nextDoc fails to do this, instead manually walking through the sub's docs (calling .nextDoc()), which is slower (though this'd be tiny in practice).

      As far as I can tell it should delegate to the bulk scorer just like it does in its bulk scorer method.

      Attachments

        1. LUCENE-2711.patch
          1 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: