Class GetRequest.AbstractBuilder<BuilderT extends GetRequest.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.elasticsearch._core.GetRequest.AbstractBuilder<BuilderT>
- Direct Known Subclasses:
GetRequest.Builder
,GetSourceRequest.Builder
- Enclosing class:
- GetRequest
protected abstract static class GetRequest.AbstractBuilder<BuilderT extends GetRequest.AbstractBuilder<BuilderT>>
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder()
-
Method Summary
Modifier and Type Method Description BuilderT
addSourceExcludes(java.lang.String value)
Add a value tosourceExcludes(List)
, creating the list if needed.BuilderT
addSourceIncludes(java.lang.String value)
Add a value tosourceIncludes(List)
, creating the list if needed.BuilderT
addStoredFields(java.lang.String value)
Add a value tostoredFields(List)
, creating the list if needed.BuilderT
id(java.lang.String value)
Required - Unique identifier of the document.BuilderT
index(java.lang.String value)
Required - Name of the index that contains the document.BuilderT
preference(java.lang.String value)
Specifies the node or shard the operation should be performed on.BuilderT
realtime(java.lang.Boolean value)
Boolean) If true, the request is real-time as opposed to near-real-time.BuilderT
refresh(java.lang.Boolean value)
If true, Elasticsearch refreshes the affected shards to make this operation visible to search.BuilderT
routing(java.lang.String value)
Target the specified primary shard.protected abstract BuilderT
self()
BuilderT
source(jakarta.json.JsonValue value)
True or false to return the _source field or not, or a list of fields to return.BuilderT
sourceExcludes(java.lang.String... value)
A comma-separated list of source fields to exclude in the response.BuilderT
sourceExcludes(java.util.List<java.lang.String> value)
A comma-separated list of source fields to exclude in the response.BuilderT
sourceIncludes(java.lang.String... value)
A comma-separated list of source fields to include in the response.BuilderT
sourceIncludes(java.util.List<java.lang.String> value)
A comma-separated list of source fields to include in the response.BuilderT
storedFields(java.lang.String... value)
A comma-separated list of stored fields to return in the responseBuilderT
storedFields(java.util.List<java.lang.String> value)
A comma-separated list of stored fields to return in the responseBuilderT
type(java.lang.String value)
The type of the document (use_all
to fetch the first document matching the ID across all types)BuilderT
version(java.lang.Long value)
Explicit version number for concurrency control.BuilderT
versionType(VersionType value)
Specific version type: internal, external, external_gte.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
id
Required - Unique identifier of the document.API name:
id
-
index
Required - Name of the index that contains the document.API name:
index
-
type
The type of the document (use_all
to fetch the first document matching the ID across all types)API name:
type
-
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference
-
realtime
Boolean) If true, the request is real-time as opposed to near-real-time.API name:
realtime
-
refresh
If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes.API name:
refresh
-
routing
Target the specified primary shard.API name:
routing
-
source
True or false to return the _source field or not, or a list of fields to return.API name:
_source
-
sourceExcludes
A comma-separated list of source fields to exclude in the response.API name:
_source_excludes
-
sourceExcludes
A comma-separated list of source fields to exclude in the response.API name:
_source_excludes
-
addSourceExcludes
Add a value tosourceExcludes(List)
, creating the list if needed. -
sourceIncludes
A comma-separated list of source fields to include in the response.API name:
_source_includes
-
sourceIncludes
A comma-separated list of source fields to include in the response.API name:
_source_includes
-
addSourceIncludes
Add a value tosourceIncludes(List)
, creating the list if needed. -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields
-
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields
-
addStoredFields
Add a value tostoredFields(List)
, creating the list if needed. -
version
Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.API name:
version
-
versionType
Specific version type: internal, external, external_gte.API name:
version_type
-
self
-