/** * Creates a finder for document of type <code>T</code> for a specific indexName * * @param type */ public Finder(Class<T> type, String indexName) { this.type = type; T t = IndexUtils.getInstanceIndex(type); this.queryPath = t.getIndexPath(indexName); }