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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment