mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
fix wrong parse field
Original commit: elastic/x-pack-elasticsearch@d017fb3e63
This commit is contained in:
parent
f198b1bbae
commit
a90d5a581e
@ -189,7 +189,7 @@ public final class WatcherUtils {
|
||||
throw new SearchRequestParseException("could not read search request. unexpected template field [" + currentFieldName + "]");
|
||||
}
|
||||
} else if (token == XContentParser.Token.START_OBJECT) {
|
||||
if (TEMPLATE_TYPE_FIELD.getPreferredName().equals(currentFieldName)) {
|
||||
if (TEMPLATE_PARAMS_FIELD.getPreferredName().equals(currentFieldName)) {
|
||||
searchRequest.templateParams(flattenModel(parser.map()));
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user