Skip to content

Commit 37ac904

Browse files
authored
fix(sort): correct kind for score sort
1 parent 81d6d61 commit 37ac904

File tree

1 file changed

+1
-1
lines changed
  • java-client/src/main/java/co/elastic/clients/elasticsearch/_types

1 file changed

+1
-1
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static ScoreSort of(Function<Builder, ObjectBuilder<ScoreSort>> fn) {
6666
*/
6767
@Override
6868
public SortOptions.Kind _sortOptionsKind() {
69-
return SortOptions.Kind.Doc;
69+
return SortOptions.Kind.Score;
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)