Class ExistsRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.core.ExistsRequest
-
public class ExistsRequest extends RequestBase
Returns information about whether a document exists in an index.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExistsRequest.BuilderBuilder forExistsRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<ExistsRequest,BooleanResponse,ErrorResponse>_ENDPOINTEndpoint "exists".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringid()Required - The document IDjava.lang.Stringindex()Required - The name of the indexstatic ExistsRequestof(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)java.lang.Stringpreference()Specify the node or shard the operation should be performed on (default: random)java.lang.Booleanrealtime()Specify whether to perform the operation in realtime or search modejava.lang.Booleanrefresh()Refresh the shard containing the document before performing the operationjava.lang.Stringrouting()Specific routing valueSourceConfigParamsource()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.util.List<java.lang.String>storedFields()A comma-separated list of stored fields to return in the responsejava.lang.Longversion()Explicit version number for concurrency controlVersionTypeversionType()Specific version type
-
-
-
Field Detail
-
_ENDPOINT
public static final Endpoint<ExistsRequest,BooleanResponse,ErrorResponse> _ENDPOINT
Endpoint "exists".
-
-
Method Detail
-
of
public static ExistsRequest of(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)
-
source
@Nullable public final SourceConfigParam source()
True or false to return the _source field or not, or a list of fields to returnAPI name:
_source
-
sourceExcludes
public final java.util.List<java.lang.String> sourceExcludes()
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes
-
sourceIncludes
public final java.util.List<java.lang.String> sourceIncludes()
A list of fields to extract and return from the _source fieldAPI name:
_source_includes
-
id
public final java.lang.String id()
Required - The document IDAPI name:
id
-
index
public final java.lang.String index()
Required - The name of the indexAPI name:
index
-
preference
@Nullable public final java.lang.String preference()
Specify the node or shard the operation should be performed on (default: random)API name:
preference
-
realtime
@Nullable public final java.lang.Boolean realtime()
Specify whether to perform the operation in realtime or search modeAPI name:
realtime
-
refresh
@Nullable public final java.lang.Boolean refresh()
Refresh the shard containing the document before performing the operationAPI name:
refresh
-
routing
@Nullable public final java.lang.String routing()
Specific routing valueAPI name:
routing
-
storedFields
public final java.util.List<java.lang.String> storedFields()
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields
-
version
@Nullable public final java.lang.Long version()
Explicit version number for concurrency controlAPI name:
version
-
versionType
@Nullable public final VersionType versionType()
Specific version typeAPI name:
version_type
-
-