requestBuilder.setIndices(indexName);
requestBuilder.setSearchType(SearchType.QUERY_THEN_FETCH);
requestBuilder.setPreference("_local");
// Create the actual search query
QueryBuilder queryBuilder = new ElasticSearchSearchQuery(query);
requestBuilder.setQuery(queryBuilder);
logger.debug("Searching for {}", requestBuilder.toString());
// Make sure all fields are being returned
if (query.getFields().length > 0) {