Class Grouping.CommandQuery

  • Enclosing class:
    Grouping

    public class Grouping.CommandQuery
    extends Grouping.Command
    A group command for grouping on a query.
    • Field Detail

      • query

        public org.apache.lucene.search.Query query
    • Constructor Detail

      • CommandQuery

        public CommandQuery()
    • Method Detail

      • createFirstPassCollector

        protected org.apache.lucene.search.Collector createFirstPassCollector()
                                                                       throws IOException
        Description copied from class: Grouping.Command
        Returns one or more Collector instances that are needed to perform the first pass search. If multiple Collectors are returned then these wrapped in a MultiCollector.
        Specified by:
        createFirstPassCollector in class Grouping.Command
        Returns:
        one or more Collector instances that are need to perform the first pass search
        Throws:
        IOException - If I/O related errors occur
      • getMatches

        public int getMatches()
        Description copied from class: Grouping.Command
        Returns the number of matches for this Command.
        Specified by:
        getMatches in class Grouping.Command
        Returns:
        the number of matches for this Command