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

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


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

    NamedObjectsFacetQuery namedObjectsQuery = new NamedObjectsFacetQuery(query);
    QueryResponse response = query(namedObjectsQuery);
    Map<String, Object> objectsName = namedObjectsQuery.getNamesAssociation();

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

    page.addAllFacetFieldResultPages(ResultHelper.convertFacetQueryResponseToFacetPageMap(query, response));
    page.addAllFacetPivotFieldResult(ResultHelper.convertFacetQueryResponseToFacetPivotMap(query, response));
View Full Code Here

TOP

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

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.