mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-16 00:52:10 +00:00
DATAES-835 - Fix code sample in documentation for scroll API.
Original PR: #462
This commit is contained in:
parent
421333dadc
commit
c9667755f2
@ -35,8 +35,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index");
|
|||||||
|
|
||||||
SearchQuery searchQuery = new NativeSearchQueryBuilder()
|
SearchQuery searchQuery = new NativeSearchQueryBuilder()
|
||||||
.withQuery(matchAllQuery())
|
.withQuery(matchAllQuery())
|
||||||
.withIndices(INDEX_NAME)
|
|
||||||
.withTypes(TYPE_NAME)
|
|
||||||
.withFields("message")
|
.withFields("message")
|
||||||
.withPageable(PageRequest.of(0, 10))
|
.withPageable(PageRequest.of(0, 10))
|
||||||
.build();
|
.build();
|
||||||
@ -62,8 +60,6 @@ IndexCoordinates index = IndexCoordinates.of("sample-index");
|
|||||||
|
|
||||||
SearchQuery searchQuery = new NativeSearchQueryBuilder()
|
SearchQuery searchQuery = new NativeSearchQueryBuilder()
|
||||||
.withQuery(matchAllQuery())
|
.withQuery(matchAllQuery())
|
||||||
.withIndices(INDEX_NAME)
|
|
||||||
.withTypes(TYPE_NAME)
|
|
||||||
.withFields("message")
|
.withFields("message")
|
||||||
.withPageable(PageRequest.of(0, 10))
|
.withPageable(PageRequest.of(0, 10))
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user