Package org.apache.solr.search
Class Grouping.CommandQuery
- java.lang.Object
-
- org.apache.solr.search.Grouping.Command<Object>
-
- org.apache.solr.search.Grouping.CommandQuery
-
- Enclosing class:
- Grouping
public class Grouping.CommandQuery extends Grouping.Command<Object>
A group command for grouping on a query.
-
-
Field Summary
Fields Modifier and Type Field Description org.apache.lucene.search.Queryquery-
Fields inherited from class org.apache.solr.search.Grouping.Command
docsPerGroup, format, groupOffset, groupSort, key, main, numGroups, offset, totalCount, withinGroupSort
-
-
Constructor Summary
Constructors Constructor Description CommandQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.search.CollectorcreateFirstPassCollector()Returns one or moreCollectorinstances that are needed to perform the first pass search.protected voidfinish()Performs any necessary post actions to prepare the response.intgetMatches()Returns the number of matches for thisCommand.protected voidprepare()Prepare thisCommandfor execution.-
Methods inherited from class org.apache.solr.search.Grouping.Command
addDocList, commonResponse, createAllGroupCollector, createSecondPassCollector, createSimpleResponse, getDocList, getNumberOfGroups, populateScoresIfNecessary
-
-
-
-
Method Detail
-
prepare
protected void prepare() throws IOExceptionDescription copied from class:Grouping.CommandPrepare thisCommandfor execution.- Specified by:
preparein classGrouping.Command<Object>- Throws:
IOException- If I/O related errors occur
-
createFirstPassCollector
protected org.apache.lucene.search.Collector createFirstPassCollector() throws IOExceptionDescription copied from class:Grouping.CommandReturns one or moreCollectorinstances that are needed to perform the first pass search. If multiple Collectors are returned then these wrapped in aMultiCollector.- Specified by:
createFirstPassCollectorin classGrouping.Command<Object>- Returns:
- one or more
Collectorinstances that are need to perform the first pass search - Throws:
IOException- If I/O related errors occur
-
finish
protected void finish() throws IOExceptionDescription copied from class:Grouping.CommandPerforms any necessary post actions to prepare the response.- Specified by:
finishin classGrouping.Command<Object>- Throws:
IOException- If I/O related errors occur
-
getMatches
public int getMatches()
Description copied from class:Grouping.CommandReturns the number of matches for thisCommand.- Specified by:
getMatchesin classGrouping.Command<Object>- Returns:
- the number of matches for this
Command
-
-