Example usage for org.apache.solr.request SimpleFacets getFacetFieldCounts

List of usage examples for org.apache.solr.request SimpleFacets getFacetFieldCounts

Introduction

In this page you can find the example usage for org.apache.solr.request SimpleFacets getFacetFieldCounts.

Prototype

@SuppressWarnings("unchecked")
public NamedList<Object> getFacetFieldCounts() throws IOException, SyntaxError 

Source Link

Document

Returns a list of value constraints and the associated facet counts for each facet field specified in the params.

Usage

From source file:org.tallison.solr.search.concordance.SolrConcordanceBase.java

License:Apache License

protected static NamedList doFacetSearch(DocSet docSet, SolrParams params, SolrQueryRequest req)
        throws IOException, SyntaxError {
    SimpleFacets f = new SimpleFacets(req, docSet, params, null);
    NamedList counts = f.getFacetFieldCounts();
    return counts;
}