Package org.apache.solr.analytics.facet
Class AbstractSolrQueryFacet
- java.lang.Object
-
- org.apache.solr.analytics.facet.AnalyticsFacet
-
- org.apache.solr.analytics.facet.AbstractSolrQueryFacet
-
- Direct Known Subclasses:
QueryFacet
,RangeFacet
public abstract class AbstractSolrQueryFacet extends AnalyticsFacet
Solr Query Facets are AnalyticsFacets that are calculated after the document streaming phase has occurred in theAnalyticsDriver
(during which StreamingFacets and overall expressions are calculated).AbstractSolrQueryFacet
s should not be confused withQueryFacet
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
collectionManager, expressionCalculator, name, reductionData
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSolrQueryFacet(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
createFacetValueExecuters(org.apache.lucene.search.Query 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
-
-
-
-
Constructor Detail
-
AbstractSolrQueryFacet
protected AbstractSolrQueryFacet(String name)
-
-
Method Detail
-
createFacetValueExecuters
public abstract void createFacetValueExecuters(org.apache.lucene.search.Query filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
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 the
AnalyticsDriver
.- Parameters:
filter
- the overall query representing the documents being used for the analytics requestqueryRequest
- the queryRequestconsumer
- the consumer of each facet value's executer
-
-