Skip to content

Commit 11e851e

Browse files
committed
Change TODO comments for removing old Script API to 3.0
1 parent 6765635 commit 11e851e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

core/src/main/java/org/elasticsearch/index/query/ScriptQueryParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Query parse(QueryParseContext parseContext) throws IOException, QueryPars
8282
} else if (token == XContentParser.Token.START_OBJECT) {
8383
if (ScriptField.SCRIPT.match(currentFieldName)) {
8484
script = Script.parse(parser);
85-
} else if ("params".equals(currentFieldName)) { // TODO remove in 2.0 (here to support old script APIs)
85+
} else if ("params".equals(currentFieldName)) { // TODO remove in 3.0 (here to support old script APIs)
8686
params = parser.map();
8787
} else {
8888
throw new QueryParsingException(parseContext, "[script] query does not support [" + currentFieldName + "]");

core/src/main/java/org/elasticsearch/index/query/functionscore/script/ScriptScoreFunctionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public ScoreFunction parse(QueryParseContext parseContext, XContentParser parser
6969
} else if (token == XContentParser.Token.START_OBJECT) {
7070
if (ScriptField.SCRIPT.match(currentFieldName)) {
7171
script = Script.parse(parser);
72-
} else if ("params".equals(currentFieldName)) { // TODO remove in 2.0 (here to support old script APIs)
72+
} else if ("params".equals(currentFieldName)) { // TODO remove in 3.0 (here to support old script APIs)
7373
vars = parser.map();
7474
} else {
7575
throw new QueryParsingException(parseContext, NAMES[0] + " query does not support [" + currentFieldName + "]");

core/src/main/java/org/elasticsearch/script/AbstractScriptParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public S parse(XContentParser parser) throws IOException {
9797
throw new ScriptParseException("expected an object for field [{}], but found [{}]", currentFieldName, token);
9898
}
9999
} else {
100-
// TODO remove this in 2.0
100+
// TODO remove this in 3.0
101101
ScriptType paramScriptType = getAdditionalScriptParameters().get(currentFieldName);
102102
if (paramScriptType != null) {
103103
script = parseInlineScript(parser);

core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/ScriptHeuristic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public SignificanceHeuristic parse(XContentParser parser) throws IOException, Qu
142142
} else if (token == XContentParser.Token.START_OBJECT) {
143143
if (ScriptField.SCRIPT.match(currentFieldName)) {
144144
script = Script.parse(parser);
145-
} else if ("params".equals(currentFieldName)) { // TODO remove in 2.0 (here to support old script APIs)
145+
} else if ("params".equals(currentFieldName)) { // TODO remove in 3.0 (here to support old script APIs)
146146
params = parser.map();
147147
} else {
148148
throw new ElasticsearchParseException("failed to parse [{}] significance heuristic. unknown object [{}]", heuristicName, currentFieldName);

core/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSourceParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static class Input {
7070
String field = null;
7171
Script script = null;
7272
@Deprecated
73-
Map<String, Object> params = null; // TODO Remove in 2.0
73+
Map<String, Object> params = null; // TODO Remove in 3.0
7474
ValueType valueType = null;
7575
String format = null;
7676
Object missing = null;

0 commit comments

Comments
 (0)