[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:
parent
bfc4b8dd10
commit
6437478d65
|
@ -48,6 +48,8 @@ To use it, first create a `BulkProcessor` instance:
|
||||||
[source,java]
|
[source,java]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
import org.elasticsearch.action.bulk.BulkProcessor;
|
import org.elasticsearch.action.bulk.BulkProcessor;
|
||||||
|
import org.elasticsearch.common.unit.ByteSizeUnit;
|
||||||
|
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||||
|
|
||||||
BulkProcessor bulkProcessor = BulkProcessor.builder(
|
BulkProcessor bulkProcessor = BulkProcessor.builder(
|
||||||
client, <1>
|
client, <1>
|
||||||
|
|
Loading…
Reference in New Issue