-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cannot use search_after
with field collapse
#2935
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
Comments
I assume you are talking about calls to So you are setting a The solution would probably be to not add the shard_doc when there is a |
That's exactly right, elasticsearch returns the following error: I believe your proposed solution would work well. |
Implemented on main branch and backported to current 5.3.x. |
The elasticsearch documentation indicates that it is possible to use
search_after
with field collapse, as long the results are sorted exclusively by the collapsing field.Is this possible with
spring-data-elasticsearch
? A cursory look at the code suggests it's not possible as_shard_doc
is always added to the sort criteria as a tiebreakerThe text was updated successfully, but these errors were encountered: