From c9667755f25e534f47f8f7f88d43ea8b62028b5d Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Wed, 20 May 2020 08:41:59 +0200 Subject: [PATCH] DATAES-835 - Fix code sample in documentation for scroll API. Original PR: #462 --- src/main/asciidoc/reference/elasticsearch-misc.adoc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/asciidoc/reference/elasticsearch-misc.adoc b/src/main/asciidoc/reference/elasticsearch-misc.adoc index 9df0d064f..112d750c5 100644 --- a/src/main/asciidoc/reference/elasticsearch-misc.adoc +++ b/src/main/asciidoc/reference/elasticsearch-misc.adoc @@ -35,8 +35,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index"); SearchQuery searchQuery = new NativeSearchQueryBuilder() .withQuery(matchAllQuery()) - .withIndices(INDEX_NAME) - .withTypes(TYPE_NAME) .withFields("message") .withPageable(PageRequest.of(0, 10)) .build(); @@ -62,8 +60,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index"); SearchQuery searchQuery = new NativeSearchQueryBuilder() .withQuery(matchAllQuery()) - .withIndices(INDEX_NAME) - .withTypes(TYPE_NAME) .withFields("message") .withPageable(PageRequest.of(0, 10)) .build();