mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +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 + "]");
|
throw new SearchRequestParseException("could not read search request. unexpected template field [" + currentFieldName + "]");
|
||||||
}
|
}
|
||||||
} else if (token == XContentParser.Token.START_OBJECT) {
|
} 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()));
|
searchRequest.templateParams(flattenModel(parser.map()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user