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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3
    • 5.3
    • None
    • None
    • 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

        1. LUCENE-6639.patch
          4 kB
          Terry Smith

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: