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

Co-authored-by: Philippus Baalman <philippus@gmail.com>
This commit is contained in:
James Rodewig 2020-07-28 13:51:59 -04:00 committed by GitHub
parent 8edae3cd15
commit 025e7bee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,7 +318,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);