Package | Description |
---|---|
org.elasticsearch.action.bulk | |
org.elasticsearch.action.index |
Index action.
|
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(IndexRequestBuilder request)
Adds an
IndexRequest to the list of actions to execute. |
Modifier and Type | Method and Description |
---|---|
IndexRequestBuilder |
IndexAction.newRequestBuilder(ElasticsearchClient client) |
IndexRequestBuilder |
IndexRequestBuilder.setContentType(XContentType contentType)
The content type that will be used to generate a document from user provided objects (like Map).
|
IndexRequestBuilder |
IndexRequestBuilder.setCreate(boolean create)
Set to true to force this index to use
IndexRequest.OpType.CREATE . |
IndexRequestBuilder |
IndexRequestBuilder.setId(String id)
Sets the id to index the document under.
|
IndexRequestBuilder |
IndexRequestBuilder.setOpType(IndexRequest.OpType opType)
Sets the type of operation to perform.
|
IndexRequestBuilder |
IndexRequestBuilder.setOpType(String opType)
Sets a string representation of the
setOpType(org.elasticsearch.action.index.IndexRequest.OpType) . |
IndexRequestBuilder |
IndexRequestBuilder.setParent(String parent)
Sets the parent id of this document.
|
IndexRequestBuilder |
IndexRequestBuilder.setRefresh(boolean refresh)
Should a refresh be executed post this index operation causing the operation to
be searchable.
|
IndexRequestBuilder |
IndexRequestBuilder.setRouting(String routing)
Controls the shard routing of the request.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(byte[] source)
Sets the document to index in bytes form.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(byte[] source,
int offset,
int length)
Sets the document to index in bytes form (assumed to be safe to be used from different
threads).
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(BytesReference source)
Sets the source.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Map<String,?> source)
Index the Map as a JSON.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Map<String,?> source,
XContentType contentType)
Index the Map as the provided content type.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Object... source)
Constructs a simple document with a field name and value pairs.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String source)
Sets the document source to index.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String field1,
Object value1)
Constructs a simple document with a field and a value.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String field1,
Object value1,
String field2,
Object value2)
Constructs a simple document with a field and value pairs.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String field1,
Object value1,
String field2,
Object value2,
String field3,
Object value3)
Constructs a simple document with a field and value pairs.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String field1,
Object value1,
String field2,
Object value2,
String field3,
Object value3,
String field4,
Object value4)
Constructs a simple document with a field and value pairs.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(XContentBuilder sourceBuilder)
Sets the content source to index.
|
IndexRequestBuilder |
IndexRequestBuilder.setTimestamp(String timestamp)
Sets the timestamp either as millis since the epoch, or, in the configured date format.
|
IndexRequestBuilder |
IndexRequestBuilder.setTTL(long ttl)
Sets the relative ttl value in milliseconds.
|
IndexRequestBuilder |
IndexRequestBuilder.setTTL(String ttl)
Sets the ttl value as a time value expression.
|
IndexRequestBuilder |
IndexRequestBuilder.setTTL(TimeValue ttl)
Sets the ttl as a
TimeValue instance. |
IndexRequestBuilder |
IndexRequestBuilder.setType(String type)
Sets the type to index the document to.
|
IndexRequestBuilder |
IndexRequestBuilder.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.
|
IndexRequestBuilder |
IndexRequestBuilder.setVersionType(VersionType versionType)
Sets the versioning type.
|
Modifier and Type | Method and Description |
---|---|
IndexRequestBuilder |
Client.prepareIndex()
Index a document associated with a given index and type.
|
IndexRequestBuilder |
Client.prepareIndex(String index,
String type)
Index a document associated with a given index and type.
|
IndexRequestBuilder |
Client.prepareIndex(String index,
String type,
String id)
Index a document associated with a given index and type.
|
Modifier and Type | Method and Description |
---|---|
IndexRequestBuilder |
AbstractClient.prepareIndex() |
IndexRequestBuilder |
AbstractClient.prepareIndex(String index,
String type) |
IndexRequestBuilder |
AbstractClient.prepareIndex(String index,
String type,
String id) |
Copyright © 2009–2016. All rights reserved.