From 004cb238f15f3727e99bf5adeb8680aafdb4e75e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Jan 2025 19:57:08 +0000 Subject: [PATCH] fix parsing error in SearchQueryRecord (#184) Signed-off-by: Chenyang Ji (cherry picked from commit 6ec873cfbb4fead771dfe03f683763c5cfe65889) Signed-off-by: github-actions[bot] --- .../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));