Class RangeFacetProcessor
- java.lang.Object
-
- org.apache.solr.request.SimpleFacets
-
- org.apache.solr.handler.component.RangeFacetProcessor
-
public class RangeFacetProcessor extends SimpleFacets
Processor for Range Facets
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.request.SimpleFacets
SimpleFacets.CountPair<K extends Comparable<? super K>,V extends Comparable<? super V>>, SimpleFacets.ParsedParams
-
-
Field Summary
-
Fields inherited from class org.apache.solr.request.SimpleFacets
docsOrig, fdebug, fdebugParent, global, rb, req, searcher
-
-
Constructor Summary
Constructors Constructor Description RangeFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.util.NamedList<Object>
getFacetRangeCounts()
Returns a list of value constraints and the associated facet counts for each facet numerical field, range, and interval specified in the SolrParamsvoid
getFacetRangeCounts(RangeFacetRequest rangeFacetRequest, org.apache.solr.common.util.NamedList<Object> resOuter)
Returns a list of value constraints and the associated facet counts for each facet range specified by the givenRangeFacetRequest
protected int
rangeCount(DocSet subset, RangeFacetRequest rfr, RangeFacetRequest.FacetRange fr)
Macro for getting the numDocs of range over docs-
Methods inherited from class org.apache.solr.request.SimpleFacets
checkMincountOnExists, computeDocSet, getDocsOrig, getFacetFieldCounts, getFacetIntervalCounts, getFacetQueryCount, getFacetQueryCounts, getFacetTermEnumCounts, getFacetTermEnumCounts, getFieldMissingCount, getGlobalParams, getGroupedCounts, getGroupedFacetQueryCount, getHeatmapCounts, getListedTermCounts, getRequest, getResponseBuilder, getTermCounts, getTermCountsForPivots, newBytesRefFilter, newExcludeBytesRefFilter, parseParams, setFacetDebugInfo
-
-
-
-
Constructor Detail
-
RangeFacetProcessor
public RangeFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
-
-
Method Detail
-
getFacetRangeCounts
public org.apache.solr.common.util.NamedList<Object> getFacetRangeCounts() throws IOException, SyntaxError
Returns a list of value constraints and the associated facet counts for each facet numerical field, range, and interval specified in the SolrParams- Throws:
IOException
SyntaxError
- See Also:
FacetParams.FACET_RANGE
-
getFacetRangeCounts
public void getFacetRangeCounts(RangeFacetRequest rangeFacetRequest, org.apache.solr.common.util.NamedList<Object> resOuter) throws IOException, SyntaxError
Returns a list of value constraints and the associated facet counts for each facet range specified by the givenRangeFacetRequest
- Throws:
IOException
SyntaxError
-
rangeCount
protected int rangeCount(DocSet subset, RangeFacetRequest rfr, RangeFacetRequest.FacetRange fr) throws IOException, SyntaxError
Macro for getting the numDocs of range over docs- Throws:
IOException
SyntaxError
- See Also:
SolrIndexSearcher.numDocs()
,TermRangeQuery
-
-