Class ExistsSourceRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ExistsSourceRequest

public class ExistsSourceRequest
extends RequestBase
Returns information about whether a document source exists in an index.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static ExistsSourceRequest of​(java.util.function.Function<ExistsSourceRequest.Builder,​ObjectBuilder<ExistsSourceRequest>> fn)
    • source

      @Nullable public final SourceConfigParam source()
      True or false to return the _source field or not, or a list of fields to return

      API name: _source

    • sourceExcludes

      public final java.util.List<java.lang.String> sourceExcludes()
      A list of fields to exclude from the returned _source field

      API name: _source_excludes

    • sourceIncludes

      public final java.util.List<java.lang.String> sourceIncludes()
      A list of fields to extract and return from the _source field

      API name: _source_includes

    • id

      public final java.lang.String id()
      Required - The document ID

      API name: id

    • index

      public final java.lang.String index()
      Required - The name of the index

      API name: index

    • preference

      @Nullable public final java.lang.String preference()
      Specify the node or shard the operation should be performed on (default: random)

      API name: preference

    • realtime

      @Nullable public final java.lang.Boolean realtime()
      Specify whether to perform the operation in realtime or search mode

      API name: realtime

    • refresh

      @Nullable public final java.lang.Boolean refresh()
      Refresh the shard containing the document before performing the operation

      API name: refresh

    • routing

      @Nullable public final java.lang.String routing()
      Specific routing value

      API name: routing

    • type

      @Nullable public final java.lang.String type()
      The type of the document; deprecated and optional starting with 7.0

      API name: type

    • version

      @Nullable public final java.lang.Long version()
      Explicit version number for concurrency control

      API name: version

    • versionType

      @Nullable public final VersionType versionType()
      Specific version type

      API name: version_type