Can anyone point me to any documentation regarding search scroll for the new java api client? I'm talking about this from the HLRC - Search Scroll API | Java REST Client [7.17] | Elastic.
Thanks.
Can anyone point me to any documentation regarding search scroll for the new java api client? I'm talking about this from the HLRC - Search Scroll API | Java REST Client [7.17] | Elastic.
Thanks.
Hi @toddcarv
Do you need an example?
That would be great thank you.
This request using scroll:
SearchRequest request = SearchRequest.of(s ->
s.index("idx_test")
.query(MatchAllQuery.of(ma -> ma)._toQuery())
.scroll(Time.of(t -> t.time("60s"))));
var result = client.search(request, ObjectNode.class);
var scrollId = result.scrollId();
//pass scroll id
ScrollRequest scrollRequest = ScrollRequest.of(s ->
s.scrollId(scrollId).scroll(Time.of(t -> t.time("60s"))));
var result = client.scroll(scrollRequest, ObjectNode.class);
Thanks!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.