public static class TopGroupsFieldCommand.Builder
extends java.lang.Object
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 java.lang.Integer |
maxDocPerGroup |
private boolean |
needMaxScore |
private boolean |
needScores |
private org.apache.lucene.search.Sort |
sortWithinGroup |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TopGroupsFieldCommand |
build() |
TopGroupsFieldCommand.Builder |
setField(SchemaField field) |
TopGroupsFieldCommand.Builder |
setFirstPhaseGroups(java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups) |
TopGroupsFieldCommand.Builder |
setGroupSort(org.apache.lucene.search.Sort groupSort) |
TopGroupsFieldCommand.Builder |
setMaxDocPerGroup(int maxDocPerGroup) |
TopGroupsFieldCommand.Builder |
setNeedMaxScore(java.lang.Boolean needMaxScore) |
TopGroupsFieldCommand.Builder |
setNeedScores(java.lang.Boolean needScores) |
TopGroupsFieldCommand.Builder |
setSortWithinGroup(org.apache.lucene.search.Sort sortWithinGroup) |
private SchemaField field
private org.apache.lucene.search.Sort groupSort
private org.apache.lucene.search.Sort sortWithinGroup
private java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups
private java.lang.Integer maxDocPerGroup
private boolean needScores
private boolean needMaxScore
public TopGroupsFieldCommand.Builder setField(SchemaField field)
public TopGroupsFieldCommand.Builder setGroupSort(org.apache.lucene.search.Sort groupSort)
public TopGroupsFieldCommand.Builder setSortWithinGroup(org.apache.lucene.search.Sort sortWithinGroup)
public TopGroupsFieldCommand.Builder setFirstPhaseGroups(java.util.Collection<org.apache.lucene.search.grouping.SearchGroup<java.lang.String>> firstPhaseGroups)
public TopGroupsFieldCommand.Builder setMaxDocPerGroup(int maxDocPerGroup)
public TopGroupsFieldCommand.Builder setNeedScores(java.lang.Boolean needScores)
public TopGroupsFieldCommand.Builder setNeedMaxScore(java.lang.Boolean needMaxScore)
public TopGroupsFieldCommand build()