diff --git a/core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java b/core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java index b2110bcd81f..bbe9f65fca3 100644 --- a/core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java +++ b/core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java @@ -382,7 +382,7 @@ public class SearchTransportService extends AbstractComponent { channel.sendResponse(new CanMatchResponse(canMatch)); } }); - TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME, QuerySearchResult::new); + TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME, CanMatchResponse::new); } public static final class CanMatchResponse extends SearchPhaseResult {