[ https://issues.apache.org/jira/browse/LUCENE-5979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-5979: --------------------------------- Attachment: LUCENE-5979.patch Here is a simple patch. I imagine the idea of {{firstFilterDoc < 100}} was to use random-access when the filter matches more than 1% of documents, so I translated it to {{filterCost * 100 > maxDoc}}. > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org