public class PivotFacetProcessor extends SimpleFacets
SimpleFacets.CountPair<K extends Comparable<? super K>,V extends Comparable<? super V>>, SimpleFacets.ParsedParams
Modifier and Type | Field and Description |
---|---|
protected SolrParams |
params |
static String |
QUERY |
static String |
RANGE |
docsOrig, fdebug, fdebugParent, global, rb, req, searcher
Constructor and Description |
---|
PivotFacetProcessor(SolrQueryRequest req,
DocSet docs,
SolrParams params,
ResponseBuilder rb) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPivotQueriesAndRanges(NamedList<Object> pivot,
SolrParams params,
DocSet docs,
List<FacetComponent.FacetBase> facetQueries,
List<RangeFacetRequest> facetRanges)
Add facet.queries and facet.ranges to the pivot response if needed
|
protected List<NamedList<Object>> |
doPivots(NamedList<Integer> superFacets,
String field,
String subField,
Deque<String> fnames,
Deque<String> vnames,
SimpleFacets.ParsedParams parsed,
List<StatsField> statsFields,
List<FacetComponent.FacetBase> facetQueries,
List<RangeFacetRequest> facetRanges)
Recursive function to compute all the pivot counts for the values under the specified field
|
SimpleOrderedMap<List<NamedList<Object>>> |
process(String[] pivots)
Processes all of the specified
FacetParams.FACET_PIVOT strings, generating
a complete response tree for each pivot. |
checkMincountOnExists, computeDocSet, getDocsOrig, getFacetFieldCounts, getFacetIntervalCounts, getFacetQueryCount, getFacetQueryCounts, getFacetTermEnumCounts, getFacetTermEnumCounts, getFieldMissingCount, getGlobalParams, getGroupedCounts, getGroupedFacetQueryCount, getHeatmapCounts, getListedTermCounts, getRequest, getResponseBuilder, getTermCounts, getTermCountsForPivots, newBytesRefFilter, newExcludeBytesRefFilter, parseParams, setFacetDebugInfo
public static final String QUERY
public static final String RANGE
protected SolrParams params
public PivotFacetProcessor(SolrQueryRequest req, DocSet docs, SolrParams params, ResponseBuilder rb)
public SimpleOrderedMap<List<NamedList<Object>>> process(String[] pivots) throws IOException
FacetParams.FACET_PIVOT
strings, generating
a complete response tree for each pivot. The values in this response will either
be the complete tree of fields and values for the specified pivot in the local index,
or the requested refinements if the pivot params include the PivotFacet.REFINE_PARAM
IOException
protected List<NamedList<Object>> doPivots(NamedList<Integer> superFacets, String field, String subField, Deque<String> fnames, Deque<String> vnames, SimpleFacets.ParsedParams parsed, List<StatsField> statsFields, List<FacetComponent.FacetBase> facetQueries, List<RangeFacetRequest> facetRanges) throws IOException
IOException
protected void addPivotQueriesAndRanges(NamedList<Object> pivot, SolrParams params, DocSet docs, List<FacetComponent.FacetBase> facetQueries, List<RangeFacetRequest> facetRanges) throws IOException
pivot
- Pivot in which to inject additional dataparams
- Query parameters.docs
- DocSet of the current pivot to use for computing sub-countsfacetQueries
- Tagged facet queries should have to be included, must not be nullfacetRanges
- Taged facet ranges should have to be included, must not be nullIOException
- If searcher has issues finding numDocs.Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.