mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
Fix template _msearch with extra tokens
This change removes the check for extra tokens when parsing a source generated by a templated _msearch request. This was added unintentionally in #29428 but the intent of this modification was to validate simple _search request only.
This commit is contained in:
parent
0ae627fc79
commit
fb81e2cacf
@ -112,7 +112,7 @@ public class TransportSearchTemplateAction extends HandledTransportAction<Search
|
||||
try (XContentParser parser = XContentFactory.xContent(XContentType.JSON)
|
||||
.createParser(xContentRegistry, LoggingDeprecationHandler.INSTANCE, source)) {
|
||||
SearchSourceBuilder builder = SearchSourceBuilder.searchSource();
|
||||
builder.parseXContent(parser, true);
|
||||
builder.parseXContent(parser, false);
|
||||
builder.explain(searchTemplateRequest.isExplain());
|
||||
builder.profile(searchTemplateRequest.isProfile());
|
||||
searchRequest.source(builder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user