Examples of HighlightQuery


Examples of org.springframework.data.solr.core.query.HighlightQuery

        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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.