Skip to content

Commit 02e9ad6

Browse files
committed
Register correct response for can_match proxy response
Relates to #25658 Closes #25698
1 parent ded9f55 commit 02e9ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public void messageReceived(ShardSearchTransportRequest request, TransportChanne
382382
channel.sendResponse(new CanMatchResponse(canMatch));
383383
}
384384
});
385-
TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME, QuerySearchResult::new);
385+
TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME, CanMatchResponse::new);
386386
}
387387

388388
public static final class CanMatchResponse extends SearchPhaseResult {

0 commit comments

Comments
 (0)