Class GetSourceRequest
- java.lang.Object
-
- org.opensearch.client.opensearch.core.GetSourceRequest
-
public class GetSourceRequest extends java.lang.ObjectReturns the source of a document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetSourceRequest.BuilderBuilder forGetSourceRequest.
-
Field Summary
Fields Modifier and Type Field Description static SimpleEndpoint<GetSourceRequest,?>_ENDPOINTEndpoint "get_source".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <TDocument>
Endpoint<GetSourceRequest,GetSourceResponse<TDocument>,ErrorResponse>createGetSourceEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "get_source" endpoint.java.lang.Stringid()Required - Unique identifier of the document.java.lang.Stringindex()Required - Name of the index that contains the document.static GetSourceRequestof(java.util.function.Function<GetSourceRequest.Builder,ObjectBuilder<GetSourceRequest>> fn)java.lang.Stringpreference()Specifies the node or shard the operation should be performed on.java.lang.Booleanrealtime()Boolean) If true, the request is real-time as opposed to near-real-time.java.lang.Booleanrefresh()If true, Elasticsearch refreshes the affected shards to make this operation visible to search.java.lang.Stringrouting()Target the specified primary shard.SourceConfigParamsource()True or false to return the _source field or not, or a list of fields to return.java.util.List<java.lang.String>sourceExcludes()A comma-separated list of source fields to exclude in the response.java.util.List<java.lang.String>sourceIncludes()A comma-separated list of source fields to include in the response.java.util.List<java.lang.String>storedFields()API name:stored_fieldsjava.lang.Longversion()Explicit version number for concurrency control.VersionTypeversionType()Specific version type: internal, external, external_gte.
-
-
-
Field Detail
-
_ENDPOINT
public static final SimpleEndpoint<GetSourceRequest,?> _ENDPOINT
Endpoint "get_source".
-
-
Method Detail
-
of
public static GetSourceRequest of(java.util.function.Function<GetSourceRequest.Builder,ObjectBuilder<GetSourceRequest>> fn)
-
source
@Nullable public final SourceConfigParam source()
True or false to return the _source field or not, or a list of fields to return.API name:
_source
-
sourceExcludes
public final java.util.List<java.lang.String> sourceExcludes()
A comma-separated list of source fields to exclude in the response.API name:
_source_excludes
-
sourceIncludes
public final java.util.List<java.lang.String> sourceIncludes()
A comma-separated list of source fields to include in the response.API name:
_source_includes
-
id
public final java.lang.String id()
Required - Unique identifier of the document.API name:
id
-
index
public final java.lang.String index()
Required - Name of the index that contains the document.API name:
index
-
preference
@Nullable public final java.lang.String preference()
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference
-
realtime
@Nullable public final java.lang.Boolean realtime()
Boolean) If true, the request is real-time as opposed to near-real-time.API name:
realtime
-
refresh
@Nullable public final java.lang.Boolean 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
@Nullable public final java.lang.String routing()
Target the specified primary shard.API name:
routing
-
storedFields
public final java.util.List<java.lang.String> storedFields()
API name:stored_fields
-
version
@Nullable public final java.lang.Long 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
@Nullable public final VersionType versionType()
Specific version type: internal, external, external_gte.API name:
version_type
-
createGetSourceEndpoint
public static <TDocument> Endpoint<GetSourceRequest,GetSourceResponse<TDocument>,ErrorResponse> createGetSourceEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create an "get_source" endpoint.
-
-