From a743d495f08c647fd57713917b19bd7e7ad8bdbf Mon Sep 17 00:00:00 2001 From: sahil buddharaju Date: Wed, 2 Aug 2023 13:10:44 -0700 Subject: [PATCH] Fixed bug with instance start map --- .../org/opensearch/action/search/AbstractSearchAsyncAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/action/search/AbstractSearchAsyncAction.java b/server/src/main/java/org/opensearch/action/search/AbstractSearchAsyncAction.java index ac516aab7523b..4d76a5dd0a903 100644 --- a/server/src/main/java/org/opensearch/action/search/AbstractSearchAsyncAction.java +++ b/server/src/main/java/org/opensearch/action/search/AbstractSearchAsyncAction.java @@ -199,7 +199,7 @@ private void instantiateStartMap() { SearchPhaseName.CAN_MATCH.getName(), () -> searchRequestOperationsListener.onCanMatchPhaseStart(this) ); - searchPhaseStartTrackingMap.put(SearchPhaseName.FETCH.getName(), () -> searchRequestOperationsListener.onQueryPhaseStart(this)); + searchPhaseStartTrackingMap.put(SearchPhaseName.DFS_QUERY.getName(), () -> searchRequestOperationsListener.onQueryPhaseStart(this)); searchPhaseStartTrackingMap.put(SearchPhaseName.QUERY.getName(), () -> searchRequestOperationsListener.onQueryPhaseStart(this)); searchPhaseStartTrackingMap.put(SearchPhaseName.FETCH.getName(), () -> searchRequestOperationsListener.onFetchPhaseStart(this)); searchPhaseStartTrackingMap.put(