[ 
https://issues.apache.org/jira/browse/LUCENE-5979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155089#comment-14155089
 ] 

Uwe Schindler commented on LUCENE-5979:
---------------------------------------

Thanks for removing the crappy extra leapfrog iterator that was just there to 
deliver the firstFilterDoc (because it was consumed before). I am unfortunately 
not completely familar with the absolute or non-absolute cost values to make a 
good guess if cost * 100 > maxDoc is fine...

> Use the cost API instead of a heuristic on the first document in 
> FilteredQuery to decide on whether to use random access
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5979
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5979
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: LUCENE-5979.patch
>
>
> Now that some major filters such as TermsFilter and 
> MultiTermQueryWrapperFilter return DocIdSets that have a better cost, we 
> should switch to the cost API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to