@Override
protected ShardSuggestRefreshResponse shardOperation(ShardSuggestRefreshRequest request) throws ElasticsearchException {
logger.trace("Entered TransportSuggestRefreshAction.shardOperation()");
IndexService indexService = indicesService.indexServiceSafe(request.index());
ShardSuggestService suggestShardService = indexService.shardInjectorSafe(request.shardId()).getInstance(ShardSuggestService.class);
return suggestShardService.refresh(request);
}
@Override
protected GroupShardsIterator shards(ClusterState clusterState, SuggestRefreshRequest request, String[] concreteIndices) {
return clusterService.operationRouting().searchShards(clusterState, request.indices(), concreteIndices, null, null);