Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6639

LRUQueryCache.CachingWrapperWeight not calling policy.onUse() if the first scorer is skipped

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The method org.apache.lucene.search.LRUQueryCache.CachingWrapperWeight.scorer(LeafReaderContext) starts with

      if (context.ord == 0) {
          policy.onUse(getQuery());
      }
      

      which can result in a missed call for queries that return a null scorer for the first segment.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shebiki Terry Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: