FacetQuery facetQuery = SimpleFacetQuery.fromQuery(query, new SimpleFacetQuery());
facetQuery.setFacetOptions(extractFacetOptions(solrQueryMethod, accessor));
return new FacetPageExecution(accessor.getPageable()).execute(facetQuery);
}
if (solrQueryMethod.isHighlightQuery()) {
HighlightQuery highlightQuery = SimpleHighlightQuery.fromQuery(query, new SimpleHighlightQuery());
highlightQuery.setHighlightOptions(extractHighlightOptions(solrQueryMethod, accessor));
return new HighlightPageExecution(accessor.getPageable()).execute(highlightQuery);
}
return new PagedExecution(accessor.getPageable()).execute(query);
} else if (solrQueryMethod.isCollectionQuery()) {
return new CollectionExecution(accessor.getPageable()).execute(query);