Class GetRequest.AbstractBuilder<BuilderT extends GetRequest.AbstractBuilder<BuilderT>>
java.lang.Object
org.opensearch.client.opensearch._global.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)Unique identifier of the document.BuilderTindex(java.lang.String value)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(jakarta.json.JsonValue 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.BuilderTsourceEnabled(java.lang.Boolean value)API name:source_enabledBuilderTsourceExcludes(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)API name:stored_fieldsBuilderTstoredFields(java.util.List<java.lang.String> value)API name:stored_fieldsBuilderTtype(java.lang.String value)API name:typeBuilderTversion(java.lang.Number value)Explicit version number for concurrency control.BuilderTversionType(jakarta.json.JsonValue value)Specific version type: internal, external, external_gte.
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
id
Unique identifier of the document. API name:id -
index
Name of the index that contains the document. API name:index -
type
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 -
sourceEnabled
API name:source_enabled -
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
API name:stored_fields -
storedFields
API 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 -
source
True or false to return the _source field or not, or a list of fields to return. API name:_source -
self
-