OpenSearch/plugins/lang-python/src
Adrien Grand b16e2d95af Allow scripts to expose whether they use the `_score`.
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.
2015-08-06 17:25:51 +02:00
..
main/java/org/elasticsearch Allow scripts to expose whether they use the `_score`. 2015-08-06 17:25:51 +02:00
test/java/org/elasticsearch/script/python Tests: Rename base tests cases to use "TestCase" suffix 2015-08-03 17:43:00 -07:00