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 2016/04/22 15:27:13 UTC

[jira] [Updated] (LUCENE-7245) Automatic warm-up of the query cache on new segments

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

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

Here is a patch. It adds QueryCachingPolicy#getTopQueries and IndexSearcher#warmUpQueryCache. I initially wanted to integrate with IndexReaderWarmer but unfortunately it does not know about other segments in the index so we cannot check whether the segment is eg. more than 3% of the index size like the query cache does today.

> Automatic warm-up of the query cache on new segments
> ----------------------------------------------------
>
>                 Key: LUCENE-7245
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7245
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7245.patch
>
>
> Thanks to the fact that we track recently-used queries, we know which ones are likely to be reused and we could use this information in order to automatically warm up the query cache on new segments (typically after a refresh after a merge).



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