Class RangeFacetProcessor
java.lang.Object
org.apache.solr.request.SimpleFacets
org.apache.solr.handler.component.RangeFacetProcessor
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
ConstructorsConstructorDescriptionRangeFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.common.util.NamedList<Object> Returns a list of value constraints and the associated facet counts for each facet numerical field, range, and interval specified in the SolrParamsvoidgetFacetRangeCounts(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 givenRangeFacetRequestprotected intrangeCount(DocSet subset, RangeFacetRequest rfr, RangeFacetRequest.FacetRange fr) Macro for getting the numDocs of range over docsMethods 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 Details
-
RangeFacetProcessor
public RangeFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
-
-
Method Details
-
getFacetRangeCounts
public org.apache.solr.common.util.NamedList<Object> getFacetRangeCounts() throws IOException, SyntaxErrorReturns a list of value constraints and the associated facet counts for each facet numerical field, range, and interval specified in the SolrParams- Throws:
IOExceptionSyntaxError- See Also:
-
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:
IOExceptionSyntaxError
-
rangeCount
protected int rangeCount(DocSet subset, RangeFacetRequest rfr, RangeFacetRequest.FacetRange fr) throws IOException, SyntaxError Macro for getting the numDocs of range over docs- Throws:
IOExceptionSyntaxError- See Also:
-