Class 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 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 querying
        query - 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 class org.apache.lucene.search.SimpleCollector
        Throws:
        IOException
      • collect

        public void collect​(int doc)
                     throws IOException
        Specified by:
        collect in interface org.apache.lucene.search.LeafCollector
        Specified by:
        collect in class org.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