[
https://issues.apache.org/jira/browse/LUCENE-6661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14615872#comment-14615872
]
Hoss Man commented on LUCENE-6661:
----------------------------------
bq. Given that the cache only caches queries that are reused, it will never be
cached.
If i'm understanding your example, then I think you mean "rewritten" not
"reused" in that sentence ... correct? (Otherwise how does the cache know if i
plan on "reusing" a specific Query instance vs constructing many instances with
will all be ".equals()")
---
Assuming i understand your example correctly: This won't actually prevent a
query from getting put in the cache, it will only prevent there from being
cache hits -- correct?
If someone does a MyQuery search 1000 times (regardless of wether it's 100 diff
instances or 1 instance reused 1000 times), won't that be be a 1000 "inserts"
into the cache (potentially causing other things to be evicted from the cache)
that will never be of any use?
> Allow queries to opt out of caching
> -----------------------------------
>
> Key: LUCENE-6661
> URL: https://issues.apache.org/jira/browse/LUCENE-6661
> Project: Lucene - Core
> Issue Type: Improvement
> Affects Versions: 5.2
> Reporter: Terry Smith
> Priority: Minor
> Attachments: LUCENE-6661.patch
>
>
> Some queries have out-of-band dependencies that make them incompatible with
> caching, it'd be great if they could opt out of the new fancy query/filter
> cache in IndexSearcher.
> This affects DrillSidewaysQuery and any user-provided custom Query
> implementations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]