public class Grouping.CommandQuery extends Grouping.Command
Modifier and Type | Field and Description |
---|---|
(package private) FilterCollector |
collector |
org.apache.lucene.search.Query |
query |
(package private) org.apache.lucene.search.TopDocsCollector |
topCollector |
actualGroupsToFind, docsPerGroup, format, groupOffset, groupSort, key, main, numGroups, offset, result, sort, totalCount
Constructor and Description |
---|
CommandQuery() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Collector |
createFirstPassCollector()
Returns one or more
Collector instances that are needed to perform the first pass search. |
protected void |
finish()
Performs any necessary post actions to prepare the response.
|
int |
getMatches()
Returns the number of matches for this
Command . |
(package private) org.apache.lucene.search.TopDocsCollector |
newCollector(org.apache.lucene.search.Sort sort,
boolean needScores) |
protected void |
prepare()
Prepare this
Command for execution. |
addDocList, commonResponse, createAllGroupCollector, createSecondPassCollector, createSimpleResponse, getDocList, getNumberOfGroups
public org.apache.lucene.search.Query query
org.apache.lucene.search.TopDocsCollector topCollector
FilterCollector collector
protected void prepare() throws java.io.IOException
Command
for execution.prepare
in class Grouping.Command
java.io.IOException
- If I/O related errors occurprotected org.apache.lucene.search.Collector createFirstPassCollector() throws java.io.IOException
Collector
instances that are needed to perform the first pass search.
If multiple Collectors are returned then these wrapped in a MultiCollector
.createFirstPassCollector
in class Grouping.Command
Collector
instances that are need to perform the first pass searchjava.io.IOException
- If I/O related errors occurorg.apache.lucene.search.TopDocsCollector newCollector(org.apache.lucene.search.Sort sort, boolean needScores) throws java.io.IOException
java.io.IOException
protected void finish() throws java.io.IOException
finish
in class Grouping.Command
java.io.IOException
- If I/O related errors occurpublic int getMatches()
Command
.getMatches
in class Grouping.Command
Command