We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
7.17
jdk8
Seems like ScoreSort sort by doc field - see https://github.com/elastic/elasticsearch-java/blob/7.17/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java#L69 Probably it should be
public SortOptions.Kind _sortOptionsKind() { return SortOptions.Kind.Score; }
The text was updated successfully, but these errors were encountered:
so possible workarround, instead of using
SortOptionsBuilders.score().order(SortOrder.Desc).build();
use
SortOptions.of(so -> so.score(s -> s.order(SortOrder.Desc)))
Sorry, something went wrong.
This is not only for 7.17. It occurs on 8 as well, I am using the latest 8.13.2.
Successfully merging a pull request may close this issue.
Java API client version
7.17
Java version
jdk8
Elasticsearch Version
7.17
Problem description
Seems like ScoreSort sort by doc field - see https://github.com/elastic/elasticsearch-java/blob/7.17/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java#L69
Probably it should be
The text was updated successfully, but these errors were encountered: