Class 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 Detail

      • GroupingSpecification

        public GroupingSpecification()
    • 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)
      • 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)