Class NestedSortBuilder

org.elasticsearch.search.sort.NestedSortBuilder
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class NestedSortBuilder extends implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
  • Field Details

    • NESTED_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField NESTED_FIELD
    • PATH_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField PATH_FIELD
    • FILTER_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField FILTER_FIELD
    • MAX_CHILDREN_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField MAX_CHILDREN_FIELD
  • Constructor Details

    • NestedSortBuilder

      public NestedSortBuilder( path)
    • NestedSortBuilder

      public NestedSortBuilder(StreamInput in) throws
      Throws:
  • Method Details

    • getPath

      public  getPath()
    • getFilter

      public QueryBuilder getFilter()
    • getMaxChildren

      public int getMaxChildren()
    • setFilter

      public NestedSortBuilder setFilter(QueryBuilder filter)
    • setMaxChildren

      public NestedSortBuilder setMaxChildren(int maxChildren)
    • getNestedSort

      public NestedSortBuilder getNestedSort()
    • setNestedSort

      public NestedSortBuilder setNestedSort(NestedSortBuilder nestedSortBuilder)
    • writeTo

      public void writeTo(StreamOutput out) throws
      Write this object's fields to a StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • fromXContent

      public static NestedSortBuilder fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws
      Throws:
    • equals

      public boolean equals( obj)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • rewrite

      public NestedSortBuilder rewrite(QueryRewriteContext ctx) throws
      Throws: