Fix compilation error from core change
Relates 2c487110b2
Original commit: elastic/x-pack-elasticsearch@b3661a5c3e
This commit is contained in:
parent
a1f7fff901
commit
61fdd0ac3c
|
@ -113,7 +113,7 @@ public final class WatcherUtils {
|
||||||
if (token == XContentParser.Token.FIELD_NAME) {
|
if (token == XContentParser.Token.FIELD_NAME) {
|
||||||
currentFieldName = parser.currentName();
|
currentFieldName = parser.currentName();
|
||||||
if (ParseFieldMatcher.STRICT.match(currentFieldName, BODY_FIELD)) {
|
if (ParseFieldMatcher.STRICT.match(currentFieldName, BODY_FIELD)) {
|
||||||
searchRequest.source(SearchSourceBuilder.parseSearchSource(parser, context, aggParsers, suggesters));
|
searchRequest.source(SearchSourceBuilder.fromXContent(parser, context, aggParsers, suggesters));
|
||||||
}
|
}
|
||||||
} else if (token == XContentParser.Token.START_ARRAY) {
|
} else if (token == XContentParser.Token.START_ARRAY) {
|
||||||
if (ParseFieldMatcher.STRICT.match(currentFieldName, INDICES_FIELD)) {
|
if (ParseFieldMatcher.STRICT.match(currentFieldName, INDICES_FIELD)) {
|
||||||
|
|
Loading…
Reference in New Issue