Class SearchAfterBuilder

java.lang.Object
org.elasticsearch.search.searchafter.SearchAfterBuilder
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

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

    • SEARCH_AFTER

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

    • SearchAfterBuilder

      public SearchAfterBuilder()
    • SearchAfterBuilder

      public SearchAfterBuilder(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • setSortValues

      public SearchAfterBuilder setSortValues(Object[] values)
    • getSortValues

      public Object[] getSortValues()
    • buildFieldDoc

      public static org.apache.lucene.search.FieldDoc buildFieldDoc(SortAndFormats sort, Object[] values, @Nullable String collapseField)
    • toXContent

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object