Class ExistsSourceRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ExistsSourceRequest.Builder>
co.elastic.clients.elasticsearch.core.ExistsSourceRequest.Builder
- All Implemented Interfaces:
WithJson<ExistsSourceRequest.Builder>,ObjectBuilder<ExistsSourceRequest>
- Enclosing class:
- ExistsSourceRequest
public static class ExistsSourceRequest.Builder
extends RequestBase.AbstractBuilder<ExistsSourceRequest.Builder>
implements ObjectBuilder<ExistsSourceRequest>
Builder for
ExistsSourceRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aExistsSourceRequest.Required - The document IDRequired - The name of the indexpreference(String value) Specify the node or shard the operation should be performed on (default: random)Specify whether to perform the operation in realtime or search modeRefresh the shard containing the document before performing the operationSpecific routing valueprotected ExistsSourceRequest.Builderself()source(SourceConfigParam value) True or false to return the _source field or not, or a list of fields to returnTrue or false to return the _source field or not, or a list of fields to returnsourceExcludes(String value, String... values) A list of fields to exclude from the returned _source fieldsourceExcludes(List<String> list) A list of fields to exclude from the returned _source fieldsourceIncludes(String value, String... values) A list of fields to extract and return from the _source fieldsourceIncludes(List<String> list) A list of fields to extract and return from the _source fieldThe type of the document; deprecated and optional starting with 7.0Explicit version number for concurrency controlversionType(VersionType value) Specific version typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
source
public final ExistsSourceRequest.Builder source(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludesAdds all elements of
listtosourceExcludes. -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludesAdds one or more values to
sourceExcludes. -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includesAdds all elements of
listtosourceIncludes. -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includesAdds one or more values to
sourceIncludes. -
id
Required - The document IDAPI name:
id -
index
Required - The name of the indexAPI name:
index -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
realtime
Specify whether to perform the operation in realtime or search modeAPI name:
realtime -
refresh
Refresh the shard containing the document before performing the operationAPI name:
refresh -
routing
Specific routing valueAPI name:
routing -
type
The type of the document; deprecated and optional starting with 7.0API name:
type -
version
Explicit version number for concurrency controlAPI name:
version -
versionType
Specific version typeAPI name:
version_type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ExistsSourceRequest.Builder>
-
build
Builds aExistsSourceRequest.- Specified by:
buildin interfaceObjectBuilder<ExistsSourceRequest>- Throws:
NullPointerException- if some of the required fields are null.
-