[
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: [email protected]
For additional commands, e-mail: [email protected]