Skip to content
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

Support for search_after [DATAES-571] #1143

Closed
spring-projects-issues opened this issue Apr 25, 2019 · 5 comments · Fixed by #1691
Closed

Support for search_after [DATAES-571] #1143

spring-projects-issues opened this issue Apr 25, 2019 · 5 comments · Fixed by #1691
Assignees
Labels
type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

adrian opened DATAES-571 and commented

Spring Data Elasticsearch doesn't provide search_after support (at least I didn't found after browsing the source code).

search_after support would allow to implement batch application querying large data without having to rely on a statefull approach (statefull scroll).

See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html

 


Affects: 3.2 M3 (Moore)

4 votes, 5 watchers

@spring-projects-issues
Copy link
Author

Nikolaos Georgiou commented

I also agree this would be most useful :) 

@spring-projects-issues
Copy link
Author

maxim-bandurko-lsvt commented

Voting for this card too

That is another one pagination option that Elasticsearch has, and it is used very much in almost all applications that deals with huge datasets.

If it is needed, I can provide a fix in branch at github for a review

@spring-projects-issues
Copy link
Author

maxim-bandurko-lsvt commented

If somebody interested in temporary patch for this feature, I can provide a work around that will work within existing PR using overrides with reflection

@spring-projects-issues
Copy link
Author

William Wang commented

NativeSearchQueryBuilder should support searchAfter method

it is not compatible with new version ,much more inconvenient to use SearchSourceBuilder instead

@spring-projects-issues
Copy link
Author

William Wang commented

Additional

my DATAES version is 4.0.1, newest release version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants