Package org.apache.solr.search.grouping
Class GroupingSpecification
- java.lang.Object
-
- org.apache.solr.search.grouping.GroupingSpecification
-
public class GroupingSpecification extends Object
Encapsulates the grouping options like fields group sort and more specified by clients.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description GroupingSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String[]getFields()String[]getFunctions()intgetGroupLimit()Deprecated.intgetGroupOffset()Deprecated.org.apache.lucene.search.SortgetGroupSort()Deprecated.SortSpecgetGroupSortSpec()intgetLimit()Deprecated.intgetOffset()Deprecated.String[]getQueries()Grouping.FormatgetResponseFormat()org.apache.lucene.search.SortgetSortWithinGroup()Deprecated.intgetWithinGroupLimit()Deprecated.intgetWithinGroupOffset()Deprecated.SortSpecgetWithinGroupSortSpec()booleanisIncludeGroupCount()booleanisMain()booleanisNeedScore()booleanisTruncateGroups()voidsetFields(String[] fields)voidsetFunctions(String[] functions)voidsetGroupSortSpec(SortSpec groupSortSpec)voidsetIncludeGroupCount(boolean includeGroupCount)voidsetMain(boolean main)voidsetNeedScore(boolean needScore)voidsetQueries(String[] queries)voidsetResponseFormat(Grouping.Format responseFormat)voidsetTruncateGroups(boolean truncateGroups)voidsetWithinGroupSortSpec(SortSpec withinGroupSortSpec)
-
-
-
Method Detail
-
getFields
public String[] getFields()
-
setFields
public void setFields(String[] fields)
-
getQueries
public String[] getQueries()
-
setQueries
public void setQueries(String[] queries)
-
getFunctions
public String[] getFunctions()
-
setFunctions
public void setFunctions(String[] functions)
-
getWithinGroupOffset
@Deprecated public int getWithinGroupOffset()
Deprecated.
-
getGroupOffset
@Deprecated public int getGroupOffset()
Deprecated.
-
getWithinGroupLimit
@Deprecated public int getWithinGroupLimit()
Deprecated.
-
getGroupLimit
@Deprecated public int getGroupLimit()
Deprecated.
-
getOffset
@Deprecated public int getOffset()
Deprecated.
-
getLimit
@Deprecated public int getLimit()
Deprecated.
-
getGroupSort
@Deprecated public org.apache.lucene.search.Sort getGroupSort()
Deprecated.
-
getSortWithinGroup
@Deprecated public org.apache.lucene.search.Sort getSortWithinGroup()
Deprecated.
-
isIncludeGroupCount
public boolean isIncludeGroupCount()
-
setIncludeGroupCount
public void setIncludeGroupCount(boolean includeGroupCount)
-
isMain
public boolean isMain()
-
setMain
public void setMain(boolean main)
-
getResponseFormat
public Grouping.Format getResponseFormat()
-
setResponseFormat
public void setResponseFormat(Grouping.Format responseFormat)
-
isNeedScore
public boolean isNeedScore()
-
setNeedScore
public void setNeedScore(boolean needScore)
-
isTruncateGroups
public boolean isTruncateGroups()
-
setTruncateGroups
public void setTruncateGroups(boolean truncateGroups)
-
getGroupSortSpec
public SortSpec getGroupSortSpec()
-
setGroupSortSpec
public void setGroupSortSpec(SortSpec groupSortSpec)
-
getWithinGroupSortSpec
public SortSpec getWithinGroupSortSpec()
-
setWithinGroupSortSpec
public void setWithinGroupSortSpec(SortSpec withinGroupSortSpec)
-
-