Class CollapseBuilder

    • Field Detail

      • FIELD_FIELD

        public static final ParseField FIELD_FIELD
      • INNER_HITS_FIELD

        public static final ParseField INNER_HITS_FIELD
      • MAX_CONCURRENT_GROUP_REQUESTS_FIELD

        public static final ParseField MAX_CONCURRENT_GROUP_REQUESTS_FIELD
    • Constructor Detail

      • CollapseBuilder

        public CollapseBuilder​(java.lang.String field)
        Public constructor
        Parameters:
        field - The name of the field to collapse on
      • CollapseBuilder

        public CollapseBuilder​(StreamInput in)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setMaxConcurrentGroupRequests

        public CollapseBuilder setMaxConcurrentGroupRequests​(int num)
      • getField

        public java.lang.String getField()
        The name of the field to collapse against
      • getInnerHits

        public java.util.List<InnerHitBuilder> getInnerHits()
        The inner hit options to expand the collapsed results
      • getMaxConcurrentGroupRequests

        public int getMaxConcurrentGroupRequests()
        Returns the amount of group requests that are allowed to be ran concurrently in the inner_hits phase.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object