1
0
Эх сурвалжийг харах

[DOCS] Fix allowed values for numeric sort types (#60176)

Philippus Baalman 5 жил өмнө
parent
commit
238fab873d

+ 1 - 1
server/src/main/java/org/elasticsearch/search/sort/FieldSortBuilder.java

@@ -258,7 +258,7 @@ public class FieldSortBuilder extends SortBuilder<FieldSortBuilder> {
      * Specifying a numeric type tells Elasticsearch what type the sort values should
      * have, which is important for cross-index search, if a field does not have
      * the same type on all indices.
-     * Allowed values are <code>long</code> and <code>double</code>.
+     * Allowed values are <code>long</code>, <code>double</code>, <code>date</code> and <code>date_nanos</code>.
      */
     public FieldSortBuilder setNumericType(String numericType) {
         String lowerCase = numericType.toLowerCase(Locale.ENGLISH);