From b1e7f813fc90ecc97ea4d5a68c7f796b11d5b7c5 Mon Sep 17 00:00:00 2001 From: Chenyang Ji Date: Fri, 10 Jan 2025 11:25:23 -0800 Subject: [PATCH] fix parsing error in SearchQueryRecord Signed-off-by: Chenyang Ji --- .../plugin/insights/rules/model/SearchQueryRecord.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/opensearch/plugin/insights/rules/model/SearchQueryRecord.java b/src/main/java/org/opensearch/plugin/insights/rules/model/SearchQueryRecord.java index 66fe7675..f66d8dc0 100644 --- a/src/main/java/org/opensearch/plugin/insights/rules/model/SearchQueryRecord.java +++ b/src/main/java/org/opensearch/plugin/insights/rules/model/SearchQueryRecord.java @@ -175,6 +175,7 @@ public static SearchQueryRecord fromXContent(XContentParser parser) throws IOExc break; case GROUP_BY: attributes.put(Attribute.GROUP_BY, parser.text()); + break; case SOURCE: XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser); attributes.put(Attribute.SOURCE, SearchSourceBuilder.fromXContent(parser, false));