diff options
author | Ryan Ernst <ryan@iernst.net> | 2017-06-14 22:01:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 22:01:19 -0700 |
commit | caf7792db1404ba3bf7e01b799f8ce0d2eaedc3b (patch) | |
tree | d1de495e3c61d6a3e6d1114b08d4763a6f7afc33 /core/src/test/java/org/elasticsearch/common | |
parent | a4471f51e49a5d797548054d80eaf60a0e450283 (diff) |
Scripting: Rename SearchScript.needsScores to needs_score (#25235)
This commit renames the needsScores method so as to make it
automatically generatable, based on the name of the `_score` variable
which is available in search scripts. It also adds documentation to
ScriptContext to explain the naming and signature of such methods.
Diffstat (limited to 'core/src/test/java/org/elasticsearch/common')
-rw-r--r-- | core/src/test/java/org/elasticsearch/common/lucene/search/function/ScriptScoreFunctionTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/test/java/org/elasticsearch/common/lucene/search/function/ScriptScoreFunctionTests.java b/core/src/test/java/org/elasticsearch/common/lucene/search/function/ScriptScoreFunctionTests.java index 369129826e..bd15805fa6 100644 --- a/core/src/test/java/org/elasticsearch/common/lucene/search/function/ScriptScoreFunctionTests.java +++ b/core/src/test/java/org/elasticsearch/common/lucene/search/function/ScriptScoreFunctionTests.java @@ -44,7 +44,7 @@ public class ScriptScoreFunctionTests extends ESTestCase { } @Override - public boolean needsScores() { + public boolean needs_score() { return false; } }); |