mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
For optimization pruposes a function score query with an empty function will just result in the original sub query. However, sometimes one might want to use function_score query to actually filter out docs within for example bool clauses by using the min_score functionallity. Therefore the sub query should only be used without wrapping inside a function_score query if min_score was also not set. closes #10253 closes #10326