b16e2d95af
This commit adds a new API to allow scripts to say whether they need scores. In practice, only the `expression` script engine makes use of it correctly, other engines just return `true` since they can't predict whether they'll need scores. This should make scripted aggregations and `function_query` faster as we'll now be able to pass needsScores=false to Query.createWeight. |
||
---|---|---|
.. | ||
main/java/org/elasticsearch | ||
test/java/org/elasticsearch/script/python |