Skip to content

Query setScrollTime not working on reactive search #1974

Closed
@leejongchan

Description

@leejongchan

Probably there is no any setScrollTime process when using search method with reactiveElasticsearchTemplate.

Code

NativeSearchQuery nativeSearchQuery = new NativeSearchQueryBuilder()
   .withQuery(QueryBuilders.matchAllQuery())
   .build();
nativeSearchQuery.setScrollTime(Duration.ofHours(6));

var result = reactiveElasticsearchTemplate.search(nativeSearchQuery,ESChannelProduct.class).then();

Log

2021-10-26 16:52:36.408 DEBUG 76393 --- [main] o.s.w.r.f.client.ExchangeFunctions       : [-] HTTP POST {hidden url}/channelproduct/_search?typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&scroll=1m&search_type=query_then_fetch&batched_reduce_size=512

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions