You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/06/10 12:04:00 UTC

[jira] [Updated] (LUCENE-6543) Our caching weight wrappers should not apply acceptDocs as a two-phase verification

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

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

Here is a patch. It also changes FilteredDocIdSetIterator to not cache the current doc ID.

> Our caching weight wrappers should not apply acceptDocs as a two-phase verification
> -----------------------------------------------------------------------------------
>
>                 Key: LUCENE-6543
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6543
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6543.patch
>
>
> Today our caching weight wrappers return the cached doc id set as an approximation and use acceptDocs as a verification. This is abusing the two-phase iteration API given that checking acceptDocs is always fast.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org