[ 
https://issues.apache.org/jira/browse/LUCENE-6926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-6926:
---------------------------------
    Attachment: LUCENE-6926.patch

Here is a patch which changes several things:
 - ReqExclScorer now always exposes a two phase iterator, using the 
approximation of the positive clause as an approximation. This is useful 
because advancing to a non-excluded doc can be heavy if the excluded clause 
matches lots of documents. It also makes Lucene check deleted docs before we 
check the excluded clause.
 - In case ReqExclScorer needs to confirm both two phase iterators, it will 
confirm the least-costly one first.
 - The matchCost() now includes the match cost of the excluded clause  and 
tries to take into account the cost of advance (by using an arbitrary constant, 
but this is probably better than nothing?)

> Take matchCost into account for MUST_NOT clauses
> ------------------------------------------------
>
>                 Key: LUCENE-6926
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6926
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6926.patch
>
>
> ReqExclScorer potentially has two TwoPhaseIterators to check: the one for the 
> positive clause and the one for the negative clause. It should leverage the 
> match cost API to check the least costly one first.



--
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

Reply via email to