Skip to content

Commit dec620c

Browse files
author
Lee Drengenberg
authored
Merge pull request #19271 from LeeDr/fixStoredFieldsMessage
Fix stored_fields message 'is not longer supported'
2 parents f36c1b4 + 036b8ff commit dec620c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class InnerHitBuilder extends ToXContentToBytes implements Writeabl
7474
PARSER.declareStringArray(InnerHitBuilder::setStoredFieldNames, SearchSourceBuilder.STORED_FIELDS_FIELD);
7575
PARSER.declareField((p, i, c) -> {
7676
throw new ParsingException(p.getTokenLocation(), "The field [" +
77-
SearchSourceBuilder.FIELDS_FIELD + "] is not longer supported, please use [" +
77+
SearchSourceBuilder.FIELDS_FIELD + "] is no longer supported, please use [" +
7878
SearchSourceBuilder.STORED_FIELDS_FIELD + "] to retrieve stored fields or _source filtering " +
7979
"if the field is not stored");
8080
}, SearchSourceBuilder.FIELDS_FIELD, ObjectParser.ValueType.STRING_ARRAY);

core/src/main/java/org/elasticsearch/rest/action/search/RestSearchAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private static void parseSearchSource(final SearchSourceBuilder searchSourceBuil
178178

179179
if (request.param("fields") != null) {
180180
throw new IllegalArgumentException("The parameter [" +
181-
SearchSourceBuilder.FIELDS_FIELD + "] is not longer supported, please use [" +
181+
SearchSourceBuilder.FIELDS_FIELD + "] is no longer supported, please use [" +
182182
SearchSourceBuilder.STORED_FIELDS_FIELD + "] to retrieve stored fields or _source filtering " +
183183
"if the field is not stored");
184184
}

core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ public void parseXContent(QueryParseContext context, AggregatorParsers aggParser
10731073
searchAfterBuilder = SearchAfterBuilder.fromXContent(parser, context.getParseFieldMatcher());
10741074
} else if (context.getParseFieldMatcher().match(currentFieldName, FIELDS_FIELD)) {
10751075
throw new ParsingException(parser.getTokenLocation(), "The field [" +
1076-
SearchSourceBuilder.FIELDS_FIELD + "] is not longer supported, please use [" +
1076+
SearchSourceBuilder.FIELDS_FIELD + "] is no longer supported, please use [" +
10771077
SearchSourceBuilder.STORED_FIELDS_FIELD + "] to retrieve stored fields or _source filtering " +
10781078
"if the field is not stored");
10791079
} else {

0 commit comments

Comments
 (0)