@Override
public int size() throws IndextankException {
try {
logger.debug("Fetching size");
Query query = new Query(new MatchAllQuery(),null,null);
int size = this.searcher.countMatches(query);
logger.info("Fetched size: " + size);
return size;
} catch (RuntimeException e) {
logger.error("RuntimeException while processing size. Will throw an IndexTankException. Original Exception is:", e);