[
https://issues.apache.org/jira/browse/LUCENE-10276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17452037#comment-17452037
]
Michael Sokolov commented on LUCENE-10276:
------------------------------------------
The way we are using at Amazon scores are ignored and the query functions as a
filter. I think QueryCachingPolicy can be used to achieve this kind of thing?
> Turning LRUQueryCache On selectively for only a few query classes
> -----------------------------------------------------------------
>
> Key: LUCENE-10276
> URL: https://issues.apache.org/jira/browse/LUCENE-10276
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Angadpreet Nagpal
> Priority: Minor
>
> Hi,
> I'm part of the Amazon Lucene team. I was trying to get KNN queries to work
> with LRUQueryCache. From my understanding, if I have isCacheable to return
> true from my query class then it will taken care of. However, I want Lucene
> to only turn on the cache for KNN only and not for any other query like
> TermQuery, etc which might also be returning true for the isCacheable method.
> Is there any easy interface which would allow me to do this without having to
> go into each individual query class and returning false for the isCacheable
> for all of them or having to write my own cache class. Any help would be
> appreciated.
> Please correct me if I have incorrectly assumed something. This is my first
> issue!
>
> Thanks,
> Angadpreet Nagpal
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]