public IndexSearcherClosable getIndexSearcher() throws IOException {
final IndexReader indexReader;
_indexRefreshReadLock.lock();
try {
indexReader = _indexReader.get();
indexReader.incRef();
} finally {
_indexRefreshReadLock.unlock();
}
if (indexReader instanceof ExitableReader) {
((ExitableReader) indexReader).reset();