if (solrQueryMethod.isPageQuery() || solrQueryMethod.isSliceQuery()) {
if (solrQueryMethod.isFacetQuery() && solrQueryMethod.isHighlightQuery()) {
throw new InvalidDataAccessApiUsageException("Facet and Highlight cannot be combined.");
}
if (solrQueryMethod.isFacetQuery()) {
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));