Package org.springframework.data.solr.core.query

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

Related Classes of org.springframework.data.solr.core.query.HighlightQuery

Copyright © 2018 www.massapicom. 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.