IndexRequestBuilder |
IndexRequestBuilder.setCreate(boolean create) |
|
IndexRequestBuilder |
IndexRequestBuilder.setId(String id) |
Sets the id to index the document under.
|
IndexRequestBuilder |
IndexRequestBuilder.setIfPrimaryTerm(long term) |
only perform this indexing request if the document was last modification was assigned the given
primary term.
|
IndexRequestBuilder |
IndexRequestBuilder.setIfSeqNo(long seqNo) |
only perform this indexing request if the document was last modification was assigned the given
sequence number.
|
IndexRequestBuilder |
IndexRequestBuilder.setOpType(DocWriteRequest.OpType opType) |
Sets the type of operation to perform.
|
IndexRequestBuilder |
IndexRequestBuilder.setPipeline(String pipeline) |
Sets the ingest pipeline to be executed before indexing the document
|
IndexRequestBuilder |
IndexRequestBuilder.setRouting(String routing) |
Controls the shard routing of the request.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(byte[] source,
int offset,
int length,
XContentType xContentType) |
Sets the document to index in bytes form (assumed to be safe to be used from different
threads).
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(byte[] source,
XContentType xContentType) |
Sets the document to index in bytes form.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Object... source) |
Constructs a simple document with a field name and value pairs.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(String source,
XContentType xContentType) |
Sets the document source to index.
|
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(BytesReference source,
XContentType xContentType) |
Sets the source.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(XContentBuilder sourceBuilder) |
Sets the content source to index.
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(XContentType xContentType,
Object... source) |
Constructs a simple document with a field name and value pairs.
|
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.
|