diff options
author | Nik Everett <nik9000@gmail.com> | 2017-01-09 13:59:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-09 13:59:38 -0500 |
commit | e3f77b4795c27d85c52fd7beabb9ccc8c1f5c307 (patch) | |
tree | 97a6658dd12008dc27bccc6f6496bc10ce4c1b57 /modules/lang-mustache/src/main | |
parent | f75ef7adfd1835c14ab26ff3e64d0f23f555fd2b (diff) |
Replace AggregatorParsers with namedObject (#22397)
Removes `AggregatorParsers`, replacing all of its functionality with
`XContentParser#namedObject`.
This is the third bit of payoff from #22003, one less thing to pass
around the entire application.
Diffstat (limited to 'modules/lang-mustache/src/main')
-rw-r--r-- | modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/TransportSearchTemplateAction.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/TransportSearchTemplateAction.java b/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/TransportSearchTemplateAction.java index 6822358317..2fb5a98975 100644 --- a/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/TransportSearchTemplateAction.java +++ b/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/TransportSearchTemplateAction.java @@ -88,8 +88,7 @@ public class TransportSearchTemplateAction extends HandledTransportAction<Search try (XContentParser parser = XContentFactory.xContent(source).createParser(xContentRegistry, source)) { SearchSourceBuilder builder = SearchSourceBuilder.searchSource(); - builder.parseXContent(new QueryParseContext(parser, parseFieldMatcher), - searchRequestParsers.aggParsers, searchRequestParsers.suggesters); + builder.parseXContent(new QueryParseContext(parser, parseFieldMatcher), searchRequestParsers.suggesters); builder.explain(request.isExplain()); builder.profile(request.isProfile()); searchRequest.source(builder); |