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 protectedAbstractBuilder() -
Method Summary
Modifier and Type Method Description BuilderTaddSourceExcludes(java.lang.String value)Add a value tosourceExcludes(List), creating the list if needed.BuilderTaddSourceIncludes(java.lang.String value)Add a value tosourceIncludes(List), creating the list if needed.BuilderTaddStoredFields(java.lang.String value)Add a value tostoredFields(List), creating the list if needed.BuilderTid(java.lang.String value)Required - Unique identifier of the document.BuilderTindex(java.lang.String value)Required - Name of the index that contains the document.BuilderTpreference(java.lang.String value)Specifies the node or shard the operation should be performed on.BuilderTrealtime(java.lang.Boolean value)Boolean) If true, the request is real-time as opposed to near-real-time.BuilderTrefresh(java.lang.Boolean value)If true, Elasticsearch refreshes the affected shards to make this operation visible to search.BuilderTrouting(java.lang.String value)Target the specified primary shard.protected abstract BuilderTself()BuilderTsource(jakarta.json.JsonValue value)True or false to return the _source field or not, or a list of fields to return.BuilderTsourceExcludes(java.lang.String... value)A comma-separated list of source fields to exclude in the response.BuilderTsourceExcludes(java.util.List<java.lang.String> value)A comma-separated list of source fields to exclude in the response.BuilderTsourceIncludes(java.lang.String... value)A comma-separated list of source fields to include in the response.BuilderTsourceIncludes(java.util.List<java.lang.String> value)A comma-separated list of source fields to include in the response.BuilderTstoredFields(java.lang.String... value)A comma-separated list of stored fields to return in the responseBuilderTstoredFields(java.util.List<java.lang.String> value)A comma-separated list of stored fields to return in the responseBuilderTtype(java.lang.String value)The type of the document (use_allto fetch the first document matching the ID across all types)BuilderTversion(java.lang.Long value)Explicit version number for concurrency control.BuilderTversionType(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_allto 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
-