topDocs = store.getIndexSearcher(clazz.getName()).search(luceneQuery, null, Integer.MAX_VALUE, getSort());
return topDocs.totalHits;
} catch (ParseException e) {
throw new SearchException(e);
} catch (Exception e) {
throw new UnexpectedException(e);
}
}