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

Make WAH8DocIdSet compute its cardinality at building time and use it for cost()

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.5
    • None
    • None
    • New

    Description

      DocIdSetIterator.cost() accuracy can be important for the performance of some queries (eg.ConjunctionScorer). Since WAH8DocIdSet is immutable, we could compute its cardinality at building time and use it for the cost function.

      Attachments

        1. LUCENE-5115.patch
          13 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: