Class TermsEnumRequest.Builder

java.lang.Object
co.elastic.clients.elasticsearch._core.TermsEnumRequest.Builder
All Implemented Interfaces:
ObjectBuilder<TermsEnumRequest>
Enclosing class:
TermsEnumRequest

public static class TermsEnumRequest.Builder
extends java.lang.Object
implements ObjectBuilder<TermsEnumRequest>
Builder for TermsEnumRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • index

      public TermsEnumRequest.Builder index​(java.lang.String value)
      Required - Comma-separated list of data streams, indices, and index aliases to search. Wildcard (*) expressions are supported.

      API name: index

    • field

      public TermsEnumRequest.Builder field​(java.lang.String value)
      Required - The string to match at the start of indexed terms. If not provided, all terms in the field are considered.

      API name: field

    • size

      public TermsEnumRequest.Builder size​(@Nullable java.lang.Integer value)
      How many matching terms to return.

      API name: size

    • timeout

      public TermsEnumRequest.Builder timeout​(@Nullable java.lang.String value)
      The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty.

      API name: timeout

    • caseInsensitive

      public TermsEnumRequest.Builder caseInsensitive​(@Nullable java.lang.Boolean value)
      When true the provided search string is matched against index terms without case sensitivity.

      API name: case_insensitive

    • indexFilter

      public TermsEnumRequest.Builder indexFilter​(@Nullable Query value)
      Allows to filter an index shard if the provided query rewrites to match_none.

      API name: index_filter

    • indexFilter

      public TermsEnumRequest.Builder indexFilter​(java.util.function.Function<Query.Builder,​ObjectBuilder<Query>> fn)
      Allows to filter an index shard if the provided query rewrites to match_none.

      API name: index_filter

    • string

      public TermsEnumRequest.Builder string​(@Nullable java.lang.String value)
      The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request.

      API name: string

    • searchAfter

      public TermsEnumRequest.Builder searchAfter​(@Nullable java.lang.String value)
      API name: search_after
    • build

      public TermsEnumRequest build()
      Specified by:
      build in interface ObjectBuilder<TermsEnumRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.