From 4b5f52fa7240c0c7d138a9b4c6d6f0561aba072b Mon Sep 17 00:00:00 2001 From: Riya Saxena Date: Wed, 13 Mar 2024 09:32:40 -0700 Subject: [PATCH] address pr comments Signed-off-by: Riya Saxena --- .../securityanalytics/transport/TransportGetFindingsAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/securityanalytics/transport/TransportGetFindingsAction.java b/src/main/java/org/opensearch/securityanalytics/transport/TransportGetFindingsAction.java index 21ed09674..bf1b48350 100644 --- a/src/main/java/org/opensearch/securityanalytics/transport/TransportGetFindingsAction.java +++ b/src/main/java/org/opensearch/securityanalytics/transport/TransportGetFindingsAction.java @@ -179,8 +179,8 @@ private static SearchRequest getSearchDetectorsRequest(GetFindingsRequest findin else { MatchAllQueryBuilder queryBuilder = QueryBuilders.matchAllQuery(); searchSourceBuilder.query(queryBuilder); - searchSourceBuilder.size(MAX_DETECTORS_SEARCH_SIZE); // Set the size to 10000 } + searchSourceBuilder.size(MAX_DETECTORS_SEARCH_SIZE); // Set the size to 10000 searchSourceBuilder.fetchSource(true); SearchRequest searchRequest = new SearchRequest(); searchRequest.indices(Detector.DETECTORS_INDEX);