What is the correct syntax when building a search request with scroll.
I did this but I get an exception
final co.elastic.clients.elasticsearch.core.SearchRequest req =
rbuilder
.index(indexPref)
.scroll(t -> t.time("60000"))
.build();
I got the following error:
[es/search] failed: [illegal_argument_exception] failed to parse setting [scroll] with value [60000] as a time value: unit is missing or unrecognized
Unit should be milliseconds, but I dont where to put it.