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

Examples of org.springframework.data.solr.core.query.StatsOptions.FieldStatsOptions


    options.setCalcDistinct(queryMethod.isFieldStatsCountDistinctEnable());

    Collection<String> selectiveCountDistinct = queryMethod.getStatsSelectiveCountDistinctFields();

    for (Entry<String, String[]> selectiveFacet : queryMethod.getStatsSelectiveFacets().entrySet()) {
      FieldStatsOptions fieldStatsOptions = options.addField(selectiveFacet.getKey());
      for (String facetFieldName : selectiveFacet.getValue()) {
        fieldStatsOptions.addSelectiveFacet(facetFieldName);
      }

      fieldStatsOptions.setSelectiveCalcDistinct(selectiveCountDistinct.contains(selectiveFacet.getKey()));
    }

    return options;
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.query.StatsOptions.FieldStatsOptions

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.