diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java index d5f8567b9..a7d418cd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java @@ -77,7 +77,7 @@ public static ScoreSort of(Function> fn) { */ @Override public SortOptions.Kind _sortOptionsKind() { - return SortOptions.Kind.Doc; + return SortOptions.Kind.Score; } /**