diff --git a/plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java b/plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java index dc429538fec3b..7e177c4b7b6a0 100644 --- a/plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java +++ b/plugins/examples/script-expert-scoring/src/main/java/org/elasticsearch/example/expertscript/ExpertScriptPlugin.java @@ -124,6 +124,11 @@ public boolean needs_score() { return false; // Return true if the script needs the score } + @Override + public boolean needs_termStats() { + return false; // Return true if the script needs term statistics via get_termStats() + } + @Override public ScoreScript newInstance(DocReader docReader) throws IOException {