Skip to content

AbstractElasticsearchTemplate.searchForStream use Query scrolltime #1950

Closed
@Stexxen

Description

@Stexxen

When using searchForStream in ElasticSearchOperations the scroll time is always set to 60 seconds, ignoring any setting made in the Query

i.e.

  NativeSearchQuery query = ....
  query.setScrollTime(Duration.of(120, ChronoUnit.SECONDS));

  try (SearchHitsIterator<Thing> searchHitsIterator = opTemplate.searchForStream(query, Thing.class)) {

Will always set scroll=60000ms in the initial and subsequent queries to elastic even though a different scroll time has been specified.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions