Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17037

LTR Queries don't use queryResultCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.4
    • None
    • contrib - LTR, ltr
    • None

    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-7689https://issues.apache.org/jira/browse/SOLR-7689

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              softwaredoug Doug Turnbull
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h