From c52659f5069f74ec82b936b14f4830bb1fa06fe5 Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Wed, 11 Oct 2023 02:18:13 -0700 Subject: [PATCH] spotless check Signed-off-by: Siddhant Deshmukh --- .../opensearch/action/search/SearchQueryCategorizingVisitor.java | 1 + .../org/opensearch/action/search/SearchQueryCategorizor.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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;