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));