public abstract class AbstractSolrQueryFacet extends AnalyticsFacet
AnalyticsDriver
(during which StreamingFacets and overall expressions are calculated). AbstractSolrQueryFacet
s should not be confused with QueryFacet
s,
which are a specific sub-type.
The filtering for these facets is done through issuing additional Solr queries, and collecting on the resulting documents. Unlike streaming facets, which have an unspecified amount of facet values (facet buckets), the amount of facet values is determined by the user and a Solr query is issued for each requested facet value.
Modifier and Type | Class and Description |
---|---|
class |
AbstractSolrQueryFacet.FacetValueQueryExecuter
This executer is in charge of issuing the Solr query for a facet value and collecting results as the query is processed.
|
collectionManager, expressionCalculator, name, reductionData
Modifier | Constructor and Description |
---|---|
protected |
AbstractSolrQueryFacet(String name) |
Modifier and Type | Method and Description |
---|---|
abstract void |
createFacetValueExecuters(Filter filter,
SolrQueryRequest queryRequest,
Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
Returns the set of
AbstractSolrQueryFacet.FacetValueQueryExecuter s, one for each facet value, through the given consumer. |
createOldResponse, createResponse, exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
protected AbstractSolrQueryFacet(String name)
public abstract void createFacetValueExecuters(Filter filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
AbstractSolrQueryFacet.FacetValueQueryExecuter
s, one for each facet value, through the given consumer.
Each of these executors will be executed after the streaming phase in the AnalyticsDriver
.filter
- the overall filter representing the documents being used for the analytics requestqueryRequest
- the queryRequestconsumer
- the consumer of each facet value's executerCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.