Clarify behavior of FunctionScoreQuery when there are more than `size` matches to the `query`

I'm running into an issue with the FunctionScoreQuery and would appreciate some clarification of the query behavior.

Say I'm running a function_score query with size=100. The actual query matches 101 documents. How many times will the function be applied?
(a) 100 times, i.e. only on the first size=100 matches
(b) 101 times, i.e. on all matches

I've observed behavior that suggests the answer is (a).

If so, is there any way to configure the query to actually do (b), i.e., execute the function on all of the matches.

Thanks,
Alex

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.