Skip to content

Instantly share code, notes, and snippets.


Mitya Gladyshev dgladyshev

View GitHub Profile
dgladyshev /
Created Aug 15, 2015
BulkProcessorProvider provides other classes with instance of BulkProcessor. BulkProcessor is useful then you need to upload large sets of data to elasticsearch.
package dglad.projectname.elastic;
import org.elasticsearch.action.bulk.BulkProcessor;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.common.unit.ByteSizeValue;
import org.elasticsearch.common.unit.TimeValue;
You can’t perform that action at this time.