diff --git a/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java b/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java index 757cf7ff7db17..259fede7d9a4f 100644 --- a/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java +++ b/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java @@ -172,7 +172,7 @@ public TransportSearchAction( IndexNameExpressionResolver indexNameExpressionResolver, NamedWriteableRegistry namedWriteableRegistry, SearchPipelineService searchPipelineService, - SearchRequestStats searchCoordinatorStats + SearchRequestStats searchRequestStats ) { super(SearchAction.NAME, transportService, actionFilters, (Writeable.Reader) SearchRequest::new); this.client = client; @@ -187,7 +187,7 @@ public TransportSearchAction( this.indexNameExpressionResolver = indexNameExpressionResolver; this.namedWriteableRegistry = namedWriteableRegistry; this.searchPipelineService = searchPipelineService; - this.searchListenersList.add(searchCoordinatorStats); + this.searchListenersList.add(searchRequestStats); } private Map buildPerIndexAliasFilter(