[doc] Add missing imports for Java bulk API doc

I was unable to get my BulkProcessor script to work without importing the "ByteSizeUnit" and "ByteSizeValue" classes.  Perhaps I overlooked something in the example and do not understand its code.
This commit is contained in:
oyiadom 2015-06-18 10:38:12 -04:00 committed by David Pilato
parent bfc4b8dd10
commit 6437478d65
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ To use it, first create a `BulkProcessor` instance:
[source,java]
--------------------------------------------------
import org.elasticsearch.action.bulk.BulkProcessor;
import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.common.unit.ByteSizeValue;
BulkProcessor bulkProcessor = BulkProcessor.builder(
client, <1>