List<Contentlet> cons = new ArrayList<Contentlet>();
for (int i = 0; i < hits.getHits().length; i++) {
try {
cons.add(find(hits.getAt(i).field("inode").getValue().toString()));
} catch (Exception e) {
throw new ElasticSearchException(e.getMessage(),e);
}
}
return cons;
} catch (Exception e) {
throw new ElasticSearchException(e.getMessage());
}
}