Class TopGroupsFieldCommand.Builder
- java.lang.Object
-
- org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand.Builder
-
- Enclosing class:
- TopGroupsFieldCommand
public static class TopGroupsFieldCommand.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopGroupsFieldCommandbuild()TopGroupsFieldCommand.BuildersetField(SchemaField field)TopGroupsFieldCommand.BuildersetFirstPhaseGroups(Collection<org.apache.lucene.search.grouping.SearchGroup<org.apache.lucene.util.BytesRef>> firstPhaseGroups)TopGroupsFieldCommand.BuildersetGroupSort(org.apache.lucene.search.Sort groupSort)TopGroupsFieldCommand.BuildersetMaxDocPerGroup(int maxDocPerGroup)TopGroupsFieldCommand.BuildersetNeedMaxScore(Boolean needMaxScore)TopGroupsFieldCommand.BuildersetNeedScores(Boolean needScores)TopGroupsFieldCommand.BuildersetQuery(org.apache.lucene.search.Query query)TopGroupsFieldCommand.BuildersetSortWithinGroup(org.apache.lucene.search.Sort withinGroupSort)
-
-
-
Method Detail
-
setQuery
public TopGroupsFieldCommand.Builder setQuery(org.apache.lucene.search.Query query)
-
setField
public TopGroupsFieldCommand.Builder setField(SchemaField field)
-
setGroupSort
public TopGroupsFieldCommand.Builder setGroupSort(org.apache.lucene.search.Sort groupSort)
-
setSortWithinGroup
public TopGroupsFieldCommand.Builder setSortWithinGroup(org.apache.lucene.search.Sort withinGroupSort)
-
setFirstPhaseGroups
public TopGroupsFieldCommand.Builder setFirstPhaseGroups(Collection<org.apache.lucene.search.grouping.SearchGroup<org.apache.lucene.util.BytesRef>> firstPhaseGroups)
-
setMaxDocPerGroup
public TopGroupsFieldCommand.Builder setMaxDocPerGroup(int maxDocPerGroup)
-
setNeedScores
public TopGroupsFieldCommand.Builder setNeedScores(Boolean needScores)
-
setNeedMaxScore
public TopGroupsFieldCommand.Builder setNeedMaxScore(Boolean needMaxScore)
-
build
public TopGroupsFieldCommand build()
-
-