| java.lang.Object org.apache.solr.request.SimpleFacets
SimpleFacets | public class SimpleFacets (Code) | | A class that generates simple Facet information for a request.
More advanced facet implementations may compose or subclass this class
to leverage any of it's functionality.
|
Inner Class :public static class CountPair implements Comparable<CountPair<K, V>> | |
Method Summary | |
public NamedList | getFacetCounts() Looks at various Params to determing if any simple Facet Constraint count
computations are desired. | public NamedList | getFacetFieldCounts() Returns a list of value constraints and the associated facet counts
for each facet field specified in the params. | public NamedList | getFacetQueryCounts() | public NamedList | getFacetTermEnumCounts(SolrIndexSearcher searcher, DocSet docs, String field, int offset, int limit, int mincount, boolean missing, boolean sort, String prefix) Returns a list of terms in the specified field along with the
corresponding count of documents in the set that match that constraint. | public static NamedList | getFieldCacheCounts(SolrIndexSearcher searcher, DocSet docs, String fieldName, int offset, int limit, int mincount, boolean missing, boolean sort, String prefix) Use the Lucene FieldCache to get counts for each unique field value in docs . | public static int | getFieldMissingCount(SolrIndexSearcher searcher, DocSet docs, String fieldName) Returns a count of the documents in the set which do not have any
terms for for the specified field. | public NamedList | getTermCounts(String field) |
docs | protected DocSet docs(Code) | | The main set of documents all facet counts should be relative to
|
params | protected SolrParams params(Code) | | Configuration params behavior should be driven by
|
getFieldCacheCounts | public static NamedList getFieldCacheCounts(SolrIndexSearcher searcher, DocSet docs, String fieldName, int offset, int limit, int mincount, boolean missing, boolean sort, String prefix) throws IOException(Code) | | Use the Lucene FieldCache to get counts for each unique field value in docs .
The field must have at most one indexed token per document.
|
|
|