Package org.apache.solr.analytics.facet
Class QueryFacet
- java.lang.Object
-
- org.apache.solr.analytics.facet.AnalyticsFacet
-
- org.apache.solr.analytics.facet.AbstractSolrQueryFacet
-
- org.apache.solr.analytics.facet.QueryFacet
-
public class QueryFacet extends AbstractSolrQueryFacet
A facet that breaks down the data by additional Solr Queries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.analytics.facet.AbstractSolrQueryFacet
AbstractSolrQueryFacet.FacetValueQueryExecuter
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
collectionManager, expressionCalculator, name, reductionData
-
-
Constructor Summary
Constructors Constructor Description QueryFacet(String name, Map<String,String> queries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFacetValueExecuters(Filter filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
Returns the set ofAbstractSolrQueryFacet.FacetValueQueryExecuter
s, one for each facet value, through the given consumer.-
Methods inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
createOldResponse, createResponse, exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
-
-
-
-
Method Detail
-
createFacetValueExecuters
public void createFacetValueExecuters(Filter filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
Description copied from class:AbstractSolrQueryFacet
Returns the set ofAbstractSolrQueryFacet.FacetValueQueryExecuter
s, one for each facet value, through the given consumer. Each of these executors will be executed after the streaming phase in theAnalyticsDriver
.- Specified by:
createFacetValueExecuters
in classAbstractSolrQueryFacet
- Parameters:
filter
- the overall filter representing the documents being used for the analytics requestqueryRequest
- the queryRequestconsumer
- the consumer of each facet value's executer
-
-