searchBuilder = searchQueryBuilder.forEmptyQuery(pageable, filter);
} else {
searchBuilder = searchQueryBuilder.forQuery(term, pageable, filter);
}
searchBuilder.addIndex(index);
Search search = searchBuilder.build();
logger.debug(search.getData());
JestResult jestResult = execute(search);
return searchResultParser.parseResults(jestResult, pageable, term);
}