public class TopGroupsFieldCommand extends java.lang.Object implements Command<org.apache.lucene.search.grouping.TopGroups<java.lang.String>>
Modifier and Type | Class and Description |
---|---|
static class |
TopGroupsFieldCommand.Builder |
Modifier and Type | Field and Description |
---|---|
private SchemaField |
field |
private java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> |
firstPhaseGroups |
private org.apache.lucene.search.Sort |
groupSort |
private int |
maxDocPerGroup |
private boolean |
needMaxScore |
private boolean |
needScores |
private org.apache.lucene.search.grouping.TermSecondPassGroupingCollector |
secondPassCollector |
private org.apache.lucene.search.Sort |
sortWithinGroup |
Modifier | Constructor and Description |
---|---|
private |
TopGroupsFieldCommand(SchemaField field,
org.apache.lucene.search.Sort groupSort,
org.apache.lucene.search.Sort sortWithinGroup,
java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups,
int maxDocPerGroup,
boolean needScores,
boolean needMaxScore) |
Modifier and Type | Method and Description |
---|---|
java.util.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() |
java.lang.String |
getKey() |
org.apache.lucene.search.Sort |
getSortWithinGroup() |
org.apache.lucene.search.grouping.TopGroups<java.lang.String> |
result()
Returns the results that the collectors created
by
Command.create() contain after a search has been executed. |
private final SchemaField field
private final org.apache.lucene.search.Sort groupSort
private final org.apache.lucene.search.Sort sortWithinGroup
private final java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups
private final int maxDocPerGroup
private final boolean needScores
private final boolean needMaxScore
private org.apache.lucene.search.grouping.TermSecondPassGroupingCollector secondPassCollector
private TopGroupsFieldCommand(SchemaField field, org.apache.lucene.search.Sort groupSort, org.apache.lucene.search.Sort sortWithinGroup, java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups, int maxDocPerGroup, boolean needScores, boolean needMaxScore)
public java.util.List<org.apache.lucene.search.Collector> create() throws java.io.IOException
Command
Collector
instances to be
included in the search based on the .public org.apache.lucene.search.grouping.TopGroups<java.lang.String> result()
Command
Command.create()
contain after a search has been executed.public java.lang.String getKey()
public org.apache.lucene.search.Sort getGroupSort()
getGroupSort
in interface Command<org.apache.lucene.search.grouping.TopGroups<java.lang.String>>
public org.apache.lucene.search.Sort getSortWithinGroup()
getSortWithinGroup
in interface Command<org.apache.lucene.search.grouping.TopGroups<java.lang.String>>