_shardServerContext.setIndexSearcherClosable(_table, shard, searcher);
}
searcher.setSimilarity(_indexServer.getSimilarity(_table));
Query rewrite;
try {
rewrite = searcher.rewrite((Query) _query.clone());
} catch (ExitingReaderException e) {
LOG.info("Query [{0}] has been cancelled during the rewrite phase.", _query);
throw e;
}