} else {
_queryCache.remove(key);
}
}
BlurUtil.setStartTime(original);
BlurResultIterable hitsIterable = null;
try {
AtomicLongArray facetCounts = BlurUtil.getAtomicLongArraySameLengthAsList(blurQuery.facets);
hitsIterable = _indexManager.query(table, blurQuery, facetCounts);
return _queryCache.cache(table, original,
BlurUtil.convertToHits(hitsIterable, blurQuery, facetCounts, _dataFetch, blurQuery.selector, this, table));
} catch (BlurException e) {
throw e;
} catch (Exception e) {
LOG.error("Unknown error during search of [table={0},searchQuery={1}]", e, table, blurQuery);
throw new BException(e.getMessage(), e);
} finally {
if (hitsIterable != null) {
hitsIterable.close();
}
}
} catch (IOException e) {
LOG.error("Unknown error during search of [table={0},searchQuery={1}]", e, table, blurQuery);
throw new BException(e.getMessage(), e);