Package org.apache.solr.analytics.facet
Class AbstractSolrQueryFacet.FacetValueQueryExecuter
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.apache.solr.analytics.facet.AbstractSolrQueryFacet.FacetValueQueryExecuter
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,org.apache.lucene.search.LeafCollector
- Enclosing class:
- AbstractSolrQueryFacet
public class AbstractSolrQueryFacet.FacetValueQueryExecuter extends org.apache.lucene.search.SimpleCollector
This executer is in charge of issuing the Solr query for a facet value and collecting results as the query is processed.
-
-
Constructor Summary
Constructors Constructor Description FacetValueQueryExecuter(ReductionCollectionManager.ReductionDataCollection collection, org.apache.lucene.search.Query query)
Create an executer to collect the given reduction data from the given Solr query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(int doc)
void
doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
void
execute(SolrIndexSearcher searcher)
Start the collection for this facet value.org.apache.lucene.search.ScoreMode
scoreMode()
-
-
-
Constructor Detail
-
FacetValueQueryExecuter
public FacetValueQueryExecuter(ReductionCollectionManager.ReductionDataCollection collection, org.apache.lucene.search.Query query)
Create an executer to collect the given reduction data from the given Solr query.- Parameters:
collection
- The reduction data to collect while queryingquery
- The query used to filter for the facet value
-
-
Method Detail
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-
doSetNextReader
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Overrides:
doSetNextReader
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
collect
public void collect(int doc) throws IOException
- Specified by:
collect
in interfaceorg.apache.lucene.search.LeafCollector
- Specified by:
collect
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
execute
public void execute(SolrIndexSearcher searcher) throws IOException
Start the collection for this facet value.- Parameters:
searcher
- the solr searcher- Throws:
IOException
- if an exception occurs during the querying
-
-