mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-31 09:12:11 +00:00
DATAES-802 - Update documentation for using scroll API with repository methods.
Original PR: #440
This commit is contained in:
parent
a4ec819e7d
commit
21ade25fbb
@ -80,6 +80,17 @@ while (scroll.hasSearchHits()) {
|
||||
template.searchScrollClear(scrollId);
|
||||
----
|
||||
|
||||
Additionally, the scroll API can be used by defining the return type as `Stream` in the Elasticsearch Repository.
|
||||
|
||||
[source,java]
|
||||
----
|
||||
interface SampleEntityRepository extends Repository<SampleEntity, String> {
|
||||
|
||||
Stream<SampleEntity> findBy();
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
[[elasticsearch.misc.sorts]]
|
||||
== Sort options
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user