Skip to content

Commit 2fc4ba3

Browse files
committed
Address comment
Signed-off-by: bowenlan-amzn <[email protected]>
1 parent f2523f1 commit 2fc4ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/rest/action/search/RestSearchAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
149149
cancelClient.execute(StreamSearchAction.INSTANCE, searchRequest, new RestStatusToXContentListener<>(channel));
150150
};
151151
} else {
152-
logger.warn("Stream search requested but search contains unsupported aggregations. Falling back to normal search.");
152+
logger.debug("Stream search requested but search contains unsupported aggregations. Falling back to normal search.");
153153
}
154154
} else {
155155
throw new IllegalArgumentException("You need to enable stream transport first to use stream search.");
@@ -452,7 +452,7 @@ public boolean allowsUnsafeBuffers() {
452452
*/
453453
static boolean canUseStreamSearch(SearchRequest searchRequest) {
454454
if (searchRequest.source() == null || searchRequest.source().aggregations() == null) {
455-
return false; // No aggregations, stream search is allowed
455+
return false; // No aggregations, stream search is not allowed
456456
}
457457

458458
AggregatorFactories.Builder aggregations = searchRequest.source().aggregations();

0 commit comments

Comments
 (0)