I was using Bulkprocessor to index some documents (1005), but I only ended up with 1003 in ES. Also, this value could change when I change the settings of bulkprocessor (setConcurrentRequests to 10). Can someone help me out? Thanks. Below is my code,
bulkProcessor = BulkProcessor.builder(
...)
.setBulkActions(1000)
.setBulkSize(new ByteSizeValue(1, ByteSizeUnit.GB))
.setConcurrentRequests(1)
.build();
IndexRequest ir = new IndexRequest(config.get("indexName"), outputType).source(
jsonBuilder().startObject()
.field("SessionID", entry.getKey()).field("SessionURL", sessionURL)
.endObject());
es.bulkProcessor.add(ir);