Modifier and Type | Class and Description |
---|---|
static class |
TopGroupsFieldCommand.Builder |
Modifier and Type | Method and Description |
---|---|
List<org.apache.lucene.search.Collector> |
create()
Returns a list of
Collector instances to be
included in the search based on the . |
org.apache.lucene.search.Sort |
getGroupSort() |
String |
getKey() |
org.apache.lucene.search.Sort |
getSortWithinGroup() |
org.apache.lucene.search.grouping.TopGroups<String> |
result()
Returns the results that the collectors created
by
Command.create() contain after a search has been executed. |
public List<org.apache.lucene.search.Collector> create() throws IOException
Command
Collector
instances to be
included in the search based on the .create
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
Collector
instancesIOException
- If I/O related errors occurpublic org.apache.lucene.search.grouping.TopGroups<String> result()
Command
Command.create()
contain after a search has been executed.public String getKey()
public org.apache.lucene.search.Sort getGroupSort()
getGroupSort
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
public org.apache.lucene.search.Sort getSortWithinGroup()
getSortWithinGroup
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>