Skip to content

ElasticsearchTemplate does not provide the scroll ID with startScroll [DATAES-459] #1037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Jun 7, 2018 · 1 comment
Labels
in: core Issues in core support type: bug A general bug

Comments

@spring-projects-issues
Copy link

Vincent Bories-Azeau opened DATAES-459 and commented

The scan and scroll operations declared in the ElasticsearchOperations interface and its implementation in ElasticsearchTemplate are unusable because the API returns a Page instance, instead of a ScrolledPage instance, at least. We can never get the scroll ID to perform further scroll operations.

The SearchResultMapper used under the hood returns an AggregatedPage, but it is completely hidden in the ElasticsearchTemplate class, where all startScroll methods return a Page instance.

The issue DATAES-445 already pointed out documentation issues, without explicitly talking about the API unusability.

Thanks in advance for your help.

 


Affects: 3.0.7 (Kay SR7)

Referenced from: pull request #274

2 votes, 3 watchers

@spring-projects-issues
Copy link
Author

Sylvain LAURENT commented

Why dont *Scroll return an AggregatedPage?

Currently we have to cast which is ugly. Even the unit tests perform a blind cast.

And yes, the doc is totally out of date

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core support labels Dec 31, 2020
@spring-projects-issues spring-projects-issues added this to the 3.2 M4 (Moore) milestone Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant