Skip to content

Commit 2875c62

Browse files
authored
DATAES-835 - Fix code sample in documentation for scroll API.
Original PR: spring-projects#462
1 parent 75a430d commit 2875c62

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/asciidoc/reference/elasticsearch-misc.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index");
3535
3636
SearchQuery searchQuery = new NativeSearchQueryBuilder()
3737
.withQuery(matchAllQuery())
38-
.withIndices(INDEX_NAME)
39-
.withTypes(TYPE_NAME)
4038
.withFields("message")
4139
.withPageable(PageRequest.of(0, 10))
4240
.build();
@@ -62,8 +60,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index");
6260
6361
SearchQuery searchQuery = new NativeSearchQueryBuilder()
6462
.withQuery(matchAllQuery())
65-
.withIndices(INDEX_NAME)
66-
.withTypes(TYPE_NAME)
6763
.withFields("message")
6864
.withPageable(PageRequest.of(0, 10))
6965
.build();

0 commit comments

Comments
 (0)