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

FunctionScoreQuery shouldn’t use TOP_DOCS for creating inner weight

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FunctionScoreQuery.createWeight creates the weight of the inner query using the scoreMode from it’s input parameter, however, FunctionScoreQuery can’t really use WAND algorithm, and the Scorer used will ignore calls to set competitive scores. FunctionScoreQuery should just turn TOP_DOCS to COMPLETE before creating the inner query's weight.

        Attachments

          Activity

            People

            • Assignee:
              tflobbe Tomas Eduardo Fernandez Lobbe
              Reporter:
              tflobbe Tomas Eduardo Fernandez Lobbe

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment