[ https://issues.apache.org/jira/browse/SOLR-17037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Turnbull updated SOLR-17037: --------------------------------- Description: Before queries are placed in the query result cache, they get rewritten. Sometimes this rewriting happens in-place. The key used for the query result cache, has as one element, the query. For LTRQuery -> LTRScoringQuery, rewriting will change the cache key's original query. Thus when we insert using this key, it's not the same as subsequent queries that perform a lookup. So LTRQueries never benefit from the cache. A similar issue was resolved with general reranking queries by [~jbernste] SOLR-7689 - https://issues.apache.org/jira/browse/SOLR-7689 was: Before queries are placed in the query result cache, they get rewritten. Sometimes this rewriting happens in-place. The key used for the query result cache, has as one element, the query. For LTRQuery -> LTRScoringQuery, rewriting will change the cache key's original query. Thus when we insert using this key, it's not the same as subsequent queries that perform a lookup. So LTRQueries never benefit from the cache. > LTR Queries don't use queryResultCache > -------------------------------------- > > Key: SOLR-17037 > URL: https://issues.apache.org/jira/browse/SOLR-17037 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: ltr > Affects Versions: 9.4 > Reporter: Doug Turnbull > Priority: Major > > Before queries are placed in the query result cache, they get rewritten. > Sometimes this rewriting happens in-place. The key used for the query result > cache, has as one element, the query. > For LTRQuery -> LTRScoringQuery, rewriting will change the cache key's > original query. Thus when we insert using this key, it's not the same as > subsequent queries that perform a lookup. So LTRQueries never benefit from > the cache. > A similar issue was resolved with general reranking queries by [~jbernste] > SOLR-7689 - https://issues.apache.org/jira/browse/SOLR-7689 > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org