protected PercolateShardResponse shardOperation(PercolateShardRequest request) throws ElasticsearchException {
try {
return percolatorService.percolate(request);
} catch (Throwable e) {
logger.trace("{} failed to percolate", e, request.shardId());
throw new PercolateException(request.shardId(), "failed to percolate", e);
}
}