Class ExistsSourceRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch._core.ExistsSourceRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
public final class ExistsSourceRequest extends RequestBase
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExistsSourceRequest.Builder
Builder forExistsSourceRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<ExistsSourceRequest,BooleanResponse,ElasticsearchError>
ENDPOINT
Endpoint "exists_source
". -
Constructor Summary
Constructors Constructor Description ExistsSourceRequest(ExistsSourceRequest.Builder builder)
ExistsSourceRequest(java.util.function.Function<ExistsSourceRequest.Builder,ExistsSourceRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
id()
Required - The document IDjava.lang.String
index()
Required - The name of the indexjava.lang.String
preference()
Specify the node or shard the operation should be performed on (default: random)java.lang.Boolean
realtime()
Specify whether to perform the operation in realtime or search modejava.lang.Boolean
refresh()
Refresh the shard containing the document before performing the operationjava.lang.String
routing()
Specific routing valuejakarta.json.JsonValue
source()
True or false to return the _source field or not, or a list of fields to returnjava.util.List<java.lang.String>
sourceExcludes()
A list of fields to exclude from the returned _source fieldjava.util.List<java.lang.String>
sourceIncludes()
A list of fields to extract and return from the _source fieldjava.lang.String
type()
The type of the document; deprecated and optional starting with 7.0java.lang.Long
version()
Explicit version number for concurrency controlVersionType
versionType()
Specific version typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ENDPOINT
Endpoint "exists_source
".
-
-
Constructor Details
-
ExistsSourceRequest
-
ExistsSourceRequest
public ExistsSourceRequest(java.util.function.Function<ExistsSourceRequest.Builder,ExistsSourceRequest.Builder> fn)
-
-
Method Details
-
id
public java.lang.String id()Required - The document IDAPI name:
id
-
index
public java.lang.String index()Required - The name of the indexAPI name:
index
-
type
@Nullable public java.lang.String type()The type of the document; deprecated and optional starting with 7.0API name:
type
-
preference
@Nullable public java.lang.String preference()Specify the node or shard the operation should be performed on (default: random)API name:
preference
-
realtime
@Nullable public java.lang.Boolean realtime()Specify whether to perform the operation in realtime or search modeAPI name:
realtime
-
refresh
@Nullable public java.lang.Boolean refresh()Refresh the shard containing the document before performing the operationAPI name:
refresh
-
routing
@Nullable public java.lang.String routing()Specific routing valueAPI name:
routing
-
source
@Nullable public jakarta.json.JsonValue source()True or false to return the _source field or not, or a list of fields to returnAPI name:
_source
-
sourceExcludes
@Nullable public java.util.List<java.lang.String> sourceExcludes()A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes
-
sourceIncludes
@Nullable public java.util.List<java.lang.String> sourceIncludes()A list of fields to extract and return from the _source fieldAPI name:
_source_includes
-
version
@Nullable public java.lang.Long version()Explicit version number for concurrency controlAPI name:
version
-
versionType
Specific version typeAPI name:
version_type
-