can someone help me how can I search without using the scroll feature inside the elastic with alpakka.
I send search requests using the code below:
return ElasticsearchSource.typed(
"messages",
"_doc",
searchParams,
ElasticsearchSourceSettings.create()
.withScrollDuration(Duration.ofSeconds(5)),
restClient,
MessageSearchResult.class,
objectMapper)
.map(ReadResult::source)
.runWith(Sink.seq(), actorSystem)
.toCompletableFuture()
.get();
The ElasticsearchSourceSettings
to be passed does not have the option to disable scrolling.
I am using akka version 2.6.8 and alpakka-elasticsearch 2.0.1 and elasticsearch-rest-client 6.8.1 and elasticsearch 7.8.2