Skip to content

Commit 652a56e

Browse files
authored
Docs: Fix build for java-api (#35727)
The java-api docs had some broken references. Mostly because it is difficult to build them so they are difficult to check. Relates to #34528 backport of emergency fix: cc4dd98
1 parent 13d684f commit 652a56e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/BulkProcessorIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void testGlobalParametersAndSingleRequest() throws Exception {
303303
processor.add(new IndexRequest("blogs", "post_type", "1") // <2>
304304
.source(XContentType.JSON, "title", "some title"));
305305
}
306-
// end::bulk-request-mix-pipeline
306+
// end::bulk-processor-mix-parameters
307307
latch.await();
308308

309309
Iterable<SearchHit> hits = searchAll(new SearchRequest("tweets").routing("routing"));

docs/java-api/docs/bulk.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ Global parameters can be specified on the BulkRequest as well as BulkProcessor,
176176

177177
["source","java",subs="attributes,callouts,macros"]
178178
--------------------------------------------------
179-
include-tagged::{doc-tests}/BulkProcessorIT.java[bulk-processor-mix-parameters]
179+
include-tagged::{hlrc-tests}/BulkProcessorIT.java[bulk-processor-mix-parameters]
180180
--------------------------------------------------
181181
<1> global parameters from the BulkRequest will be applied on a sub request
182182
<2> local pipeline parameter on a sub request will override global parameters from BulkRequest
183183

184184

185185
["source","java",subs="attributes,callouts,macros"]
186186
--------------------------------------------------
187-
include-tagged::{doc-tests}/BulkRequestWithGlobalParametersIT.java[bulk-request-mix-pipeline]
187+
include-tagged::{hlrc-tests}/BulkRequestWithGlobalParametersIT.java[bulk-request-mix-pipeline]
188188
--------------------------------------------------
189189
<1> local pipeline parameter on a sub request will override global pipeline from the BulkRequest
190190
<2> global parameter from the BulkRequest will be applied on a sub request

docs/java-api/index.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ and add it as a dependency. As an example, we will use the `slf4j-simple` logger
151151
--------------------------------------------------
152152

153153
:client-tests: {docdir}/../../server/src/test/java/org/elasticsearch/client/documentation
154+
:hlrc-tests: {docdir}/../../client/rest-high-level/src/test/java/org/elasticsearch/client
154155

155156
:client-reindex-tests: {docdir}/../../modules/reindex/src/test/java/org/elasticsearch/client/documentation
156157

0 commit comments

Comments
 (0)