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/10/27 14:18:27 UTC

[jira] [Updated] (LUCENE-6856) LRUQueryCache.CachingWrapperWeight should delegate the bulk scorer

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

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

Here is a patch.

> LRUQueryCache.CachingWrapperWeight should delegate the bulk scorer
> ------------------------------------------------------------------
>
>                 Key: LUCENE-6856
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6856
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6856.patch
>
>
> I think we have two issues with LRUQueryCache.CachingWrapperWeight:
>  - when generating cached entries, it creates a Scorer and loads it into a DocIdSet while it would be more efficient to use a BulkScorer to do so since we consume all matching documents
>  - when a query should not be cached (eg. because it has not be seen often enough yet), we do not delegate the bulk scorer, which means that we will use a DefaultBulkScorer on top of the scorer, which can be significantly slower for some queries (eg. disjunctions)



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