Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- depends upon
-
LUCENE-4607 Add estimateDocCount to DocIdSetIterator
- Closed
- is related to
-
LUCENE-4410 Make FilteredQuery more flexible with regards to how filters are applied
- Closed
- is superceded by
-
LUCENE-5979 Use the cost API instead of a heuristic on the first document in FilteredQuery to decide on whether to use random access
- Closed
- relates to
-
LUCENE-5460 Allow driving a query by sparse filters
- Resolved