Package org.springframework.data.solr.core.QueryParserBase

Examples of org.springframework.data.solr.core.QueryParserBase.NamedObjectsHighlightQuery


  @Override
  public <T> HighlightPage<T> queryForHighlightPage(HighlightQuery query, Class<T> clazz) {
    Assert.notNull(query, "Query must not be 'null'.");
    Assert.notNull(clazz, "Target class must not be 'null'.");

    NamedObjectsHighlightQuery namedObjectsQuery = new NamedObjectsHighlightQuery(query);
    QueryResponse response = query(namedObjectsQuery);

    Map<String, Object> objectsName = namedObjectsQuery.getNamesAssociation();

    SolrResultPage<T> page = createSolrResultPage(query, clazz, response, objectsName);

    ResultHelper.convertAndAddHighlightQueryResponseToResultPage(response, page);
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.QueryParserBase.NamedObjectsHighlightQuery

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.