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

FilteredQuery useRandomAccess() should use cost()

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core/query/scoring
    • None
    • New

    Description

      Now that Lucene's DISI has a cost() method, it's possible for FilteredQuery's RANDOM_ACCESS_FILTER_STRATEGY to use a smarter algorithm in its useRandomAccess() method. In particular, it might examine filterIter.cost() to see if it is greater than the cost returned by weight.scorer().cost() of the query.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: