You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
It seems that when using a function_score query for a search, no performance improvements can be observed from setting track_total_hits to false. This is because:
FunctionScoreQuery.createWeight does not take into account non-exhausted ScoreModes, forcing subqueries to be COMPLETE or COMPLETE_NO_SCORES
FunctionFactorScorer does not propagate setMinCompetitiveScore to its sub queries
This can be easily observed with a function_score block with no functions
Describe the solution you'd like
Where possible support skipping non-competitive documents
Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
It seems that when using a
function_score
query for a search, no performance improvements can be observed from settingtrack_total_hits
tofalse
. This is because:FunctionScoreQuery.createWeight
does not take into account non-exhaustedScoreMode
s, forcing subqueries to beCOMPLETE
orCOMPLETE_NO_SCORES
FunctionFactorScorer
does not propagatesetMinCompetitiveScore
to its sub queriesThis can be easily observed with a
function_score
block with no functionsDescribe the solution you'd like
Where possible support skipping non-competitive documents
Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: