From 6437478d65ff525d540568e344569e4dc9d813bc Mon Sep 17 00:00:00 2001 From: oyiadom Date: Thu, 18 Jun 2015 10:38:12 -0400 Subject: [PATCH] [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. --- docs/java-api/bulk.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/java-api/bulk.asciidoc b/docs/java-api/bulk.asciidoc index 96b0b2eb6dc..78e89ebd277 100644 --- a/docs/java-api/bulk.asciidoc +++ b/docs/java-api/bulk.asciidoc @@ -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>