Package | Description |
---|---|
org.elasticsearch.action.get |
Get action.
|
org.elasticsearch.client |
The client module allowing to easily perform actions/operations.
|
org.elasticsearch.client.support |
Modifier and Type | Method and Description |
---|---|
GetRequestBuilder |
GetAction.newRequestBuilder(Client client) |
GetRequestBuilder |
GetRequestBuilder.setFetchSource(boolean fetch)
Indicates whether the response should contain the stored _source.
|
GetRequestBuilder |
GetRequestBuilder.setFetchSource(String[] includes,
String[] excludes)
Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard
elements.
|
GetRequestBuilder |
GetRequestBuilder.setFetchSource(String include,
String exclude)
Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard
elements.
|
GetRequestBuilder |
GetRequestBuilder.setFields(String... fields)
Explicitly specify the fields that will be returned.
|
GetRequestBuilder |
GetRequestBuilder.setId(String id)
Sets the id of the document to fetch.
|
GetRequestBuilder |
GetRequestBuilder.setIgnoreErrorsOnGeneratedFields(Boolean ignoreErrorsOnGeneratedFields) |
GetRequestBuilder |
GetRequestBuilder.setParent(String parent)
Sets the parent id of this document.
|
GetRequestBuilder |
GetRequestBuilder.setPreference(String preference)
Sets the preference to execute the search.
|
GetRequestBuilder |
GetRequestBuilder.setRealtime(Boolean realtime) |
GetRequestBuilder |
GetRequestBuilder.setRefresh(boolean refresh)
Should a refresh be executed before this get operation causing the operation to
return the latest value.
|
GetRequestBuilder |
GetRequestBuilder.setRouting(String routing)
Controls the shard routing of the request.
|
GetRequestBuilder |
GetRequestBuilder.setTransformSource(boolean transform)
Should the source be transformed using the script to used at index time
(if any)? Note that calling this without having called setFetchSource
will automatically turn on source fetching.
|
GetRequestBuilder |
GetRequestBuilder.setType(String type)
Sets the type of the document to fetch.
|
GetRequestBuilder |
GetRequestBuilder.setVersion(long version)
Sets the version, which will cause the get operation to only be performed if a matching
version exists and no changes happened on the doc since then.
|
GetRequestBuilder |
GetRequestBuilder.setVersionType(VersionType versionType)
Sets the versioning type.
|
Modifier and Type | Method and Description |
---|---|
GetRequestBuilder |
Client.prepareGet()
Gets the document that was indexed from an index with a type and id.
|
GetRequestBuilder |
Client.prepareGet(String index,
String type,
String id)
Gets the document that was indexed from an index with a type (optional) and id.
|
Modifier and Type | Method and Description |
---|---|
GetRequestBuilder |
AbstractClient.prepareGet() |
GetRequestBuilder |
AbstractClient.prepareGet(String index,
String type,
String id) |
Copyright © 2009–2015. All rights reserved.