Package org.apache.solr.search
Class Grouping.CommandQuery
- Enclosing class:
Grouping
A group command for grouping on a query.
-
Field Summary
FieldsFields inherited from class org.apache.solr.search.Grouping.Command
docsPerGroup, format, groupOffset, groupSort, key, main, numGroups, offset, totalCount, withinGroupSort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.search.CollectorReturns one or moreCollectorinstances that are needed to perform the first pass search.protected voidfinish()Performs any necessary post actions to prepare the response.intReturns 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
-
Field Details
-
query
public org.apache.lucene.search.Query query
-
-
Constructor Details
-
CommandQuery
public CommandQuery()
-
-
Method Details
-
prepare
Description copied from class:Grouping.CommandPrepare thisCommandfor execution.- Specified by:
preparein classGrouping.Command<Object>- Throws:
IOException- If I/O related errors occur
-
createFirstPassCollector
Description 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
Description 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
-