From 32ab63aee3fc842165e4c81afe7fcbfc9937639b Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Fri, 28 Jun 2024 17:01:21 -0700 Subject: [PATCH] Add categorization to the enabled check for insights service Signed-off-by: Siddhant Deshmukh --- .../plugin/insights/core/service/QueryInsightsService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java index f0f504447cf82..8dde7ec9588ee 100644 --- a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java +++ b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java @@ -209,7 +209,7 @@ public boolean isCollectionEnabled(final MetricType metricType) { } /** - * Check if query insights service is enabled + * Check if query insights service is enabled including TopN and categorization. * * @return if query insights service is enabled */ @@ -219,7 +219,7 @@ public boolean isEnabled() { return true; } } - return false; + return searchQueryMetricsEnabled; } /**