Package | Description |
---|---|
org.elasticsearch.action.bulk | |
org.elasticsearch.action.update | |
org.elasticsearch.client |
The client module allowing to easily perform actions/operations.
|
org.elasticsearch.client.support |
Modifier and Type | Method and Description |
---|---|
BulkRequestBuilder |
BulkRequestBuilder.add(UpdateRequestBuilder request)
Adds an
DeleteRequest to the list of actions to execute. |
Modifier and Type | Method and Description |
---|---|
UpdateRequestBuilder |
UpdateRequestBuilder.addScriptParam(String name,
Object value)
Add a script parameter.
|
UpdateRequestBuilder |
UpdateAction.newRequestBuilder(Client client) |
UpdateRequestBuilder |
UpdateRequestBuilder.setConsistencyLevel(WriteConsistencyLevel consistencyLevel)
Sets the consistency level of write.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDetectNoop(boolean detectNoop)
Sets whether to perform extra effort to detect noop updates via docAsUpsert.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(byte[] source)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(byte[] source,
int offset,
int length)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(IndexRequest indexRequest)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(Map source)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(Map source,
XContentType contentType)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(Object... source)
Sets the doc to use for updates when a script is not specified, the doc provided
is a field and value pairs.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(String source)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(String field,
Object value)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(XContentBuilder source)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDocAsUpsert(boolean shouldUpsertDoc)
Sets whether the specified doc parameter should be used as upsert document.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setFields(String... fields)
Explicitly specify the fields that will be returned.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setId(String id)
Sets the id of the indexed document.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setParent(String parent) |
UpdateRequestBuilder |
UpdateRequestBuilder.setRefresh(boolean refresh)
Should a refresh be executed post this update operation causing the operation to
be searchable.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setReplicationType(ReplicationType replicationType)
Sets the replication type.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setRetryOnConflict(int retryOnConflict)
Sets the number of retries of a version conflict occurs because the document was updated between
getting it and updating it.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setRouting(String routing)
Controls the shard routing of the request.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setScript(String script,
ScriptService.ScriptType scriptType)
The script to execute.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setScriptedUpsert(boolean scriptedUpsert)
Sets whether the script should be run in the case of an insert
|
UpdateRequestBuilder |
UpdateRequestBuilder.setScriptLang(String scriptLang)
The language of the script to execute.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setScriptParams(Map<String,Object> scriptParams)
Sets the script parameters to use with the script.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setSource(byte[] source) |
UpdateRequestBuilder |
UpdateRequestBuilder.setSource(byte[] source,
int offset,
int length) |
UpdateRequestBuilder |
UpdateRequestBuilder.setSource(BytesReference source) |
UpdateRequestBuilder |
UpdateRequestBuilder.setSource(XContentBuilder source) |
UpdateRequestBuilder |
UpdateRequestBuilder.setType(String type)
Sets the type of the indexed document.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(byte[] source)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(byte[] source,
int offset,
int length)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(IndexRequest indexRequest)
Sets the index request to be used if the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(Map source)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(Map source,
XContentType contentType)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(Object... source)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(String source)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(XContentBuilder source)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setVersion(long version)
Sets the version, which will cause the index operation to only be performed if a matching
version exists and no changes happened on the doc since then.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setVersionType(VersionType versionType)
Sets the versioning type.
|
Modifier and Type | Method and Description |
---|---|
UpdateRequestBuilder |
Client.prepareUpdate()
Updates a document based on a script.
|
UpdateRequestBuilder |
Client.prepareUpdate(String index,
String type,
String id)
Updates a document based on a script.
|
Modifier and Type | Method and Description |
---|---|
UpdateRequestBuilder |
AbstractClient.prepareUpdate() |
UpdateRequestBuilder |
AbstractClient.prepareUpdate(String index,
String type,
String id) |
Copyright © 2009–2015. All rights reserved.