Fix compilation error from core change

Relates 2c487110b2

Original commit: elastic/x-pack-elasticsearch@b3661a5c3e
This commit is contained in:
Alexander Reelsen 2016-04-12 18:42:28 +02:00
parent a1f7fff901
commit 61fdd0ac3c
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ public final class WatcherUtils {
if (token == XContentParser.Token.FIELD_NAME) {
currentFieldName = parser.currentName();
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) {
if (ParseFieldMatcher.STRICT.match(currentFieldName, INDICES_FIELD)) {