diff --git a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizingVisitor.java b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizingVisitor.java index 007480bb2e7bd..ac0dcf701a2ed 100644 --- a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizingVisitor.java +++ b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizingVisitor.java @@ -39,6 +39,7 @@ private SearchQueryCategorizingVisitor(SearchQueryCounters counters, int level) this.searchQueryCounters = counters; this.level = level; } + public void accept(QueryBuilder qb) { if (qb instanceof BoolQueryBuilder) { searchQueryCounters.boolCounter.add(1, Tags.create().addTag("level", level)); diff --git a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java index 64526fd2fc32d..b30ea600ce12c 100644 --- a/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java +++ b/server/src/main/java/org/opensearch/action/search/SearchQueryCategorizor.java @@ -17,7 +17,6 @@ import org.opensearch.search.builder.SearchSourceBuilder; import org.opensearch.search.sort.SortBuilder; import org.opensearch.telemetry.metrics.MetricsRegistry; -import org.opensearch.telemetry.metrics.tags.Tags; import java.util.List;