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

FunctionRangeQuery and FunctionMatchQuery can pollute the QueryCache

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.2
    • None
    • None
    • New

    Description

      The QueryCache assumes that queries will return the same set of documents when run over the same segment, independent of all other segments held by the parent IndexSearcher. However, both FunctionRangeQuery and FunctionMatchQuery can select hits based on score, which depend on term statistics over the whole index, and could therefore theoretically return different result sets on a given segment.

      Attachments

        1. LUCENE-8017.patch
          84 kB
          Alan Woodward
        2. LUCENE-8017.patch
          89 kB
          Alan Woodward
        3. LUCENE-8017.patch
          88 kB
          Alan Woodward

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment