/** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same behavior of {@link IndexRequest} * (for example, if no id is provided, one will be generated, or usage of the create flag). */ public BulkRequest add(IndexRequest request) { return internalAdd(request, null); }
/** * Adds an {@link UpdateRequest} to the list of actions to execute. */ public BulkRequest add(UpdateRequest request) { return internalAdd(request, null); }
public BulkRequest add(IndexRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(UpdateRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
/** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same behavior of {@link IndexRequest} * (for example, if no id is provided, one will be generated, or usage of the create flag). */ public BulkRequest add(IndexRequest request) { return internalAdd(request, null); }
/** * Adds an {@link UpdateRequest} to the list of actions to execute. */ public BulkRequest add(UpdateRequest request) { return internalAdd(request, null); }
/** * Adds an {@link UpdateRequest} to the list of actions to execute. */ public BulkRequest add(UpdateRequest request) { return internalAdd(request, null); }
/** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same behavior of {@link IndexRequest} * (for example, if no id is provided, one will be generated, or usage of the create flag). */ public BulkRequest add(IndexRequest request) { return internalAdd(request, null); }
/** * Adds an {@link UpdateRequest} to the list of actions to execute. */ public BulkRequest add(UpdateRequest request) { return internalAdd(request, null); }
/** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same behavior of {@link IndexRequest} * (for example, if no id is provided, one will be generated, or usage of the create flag). */ public BulkRequest add(IndexRequest request) { return internalAdd(request, null); }
/** * Adds an {@link UpdateRequest} to the list of actions to execute. */ public BulkRequest add(UpdateRequest request) { return internalAdd(request, null); }
/** * Adds an {@link IndexRequest} to the list of actions to execute. Follows the same behavior of {@link IndexRequest} * (for example, if no id is provided, one will be generated, or usage of the create flag). */ public BulkRequest add(IndexRequest request) { return internalAdd(request, null); }
public BulkRequest add(UpdateRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(IndexRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(UpdateRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(IndexRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(IndexRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(UpdateRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
public BulkRequest add(UpdateRequest request, @Nullable Object payload) { return internalAdd(request, payload); }
internalAdd(new IndexRequest(index, type, id).routing(routing).parent(parent).version(version) .versionType(versionType).setPipeline(pipeline).setIfSeqNo(ifSeqNo).setIfPrimaryTerm(ifPrimaryTerm) .source(sliceTrimmingCarriageReturn(data, from, nextMarker,xContentType), xContentType), payload); } else { internalAdd(new IndexRequest(index, type, id).routing(routing).parent(parent).version(version) .versionType(versionType).create("create".equals(opType)).setPipeline(pipeline) .setIfSeqNo(ifSeqNo).setIfPrimaryTerm(ifPrimaryTerm) internalAdd(new IndexRequest(index, type, id).routing(routing).parent(parent).version(version) .versionType(versionType).create(true).setPipeline(pipeline) .setIfSeqNo(ifSeqNo).setIfPrimaryTerm(ifPrimaryTerm) internalAdd(updateRequest, payload);