Class Sort
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.Sort
-
public class Sort extends Object
Represents a sort order
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSort.OrderRepresents a sort order
-
Constructor Summary
Constructors Constructor Description Sort()Create a sort without name or direction.Sort(String field, GeolocationSort location)Create a sort with the given name and locationSort(String field, Sort.Order order)Create a sort with the given name and order
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SortOrdergetDirection()The sort orderStringgetName()The sort nameinthashCode()SortsetDirection(SortOrder direction)The sort orderSortsetName(String name)The sort name
-
-
-
Field Detail
-
SCORE
public static final String SCORE
Default sorting for documents, score- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sort
public Sort()
Create a sort without name or direction. Used for reflection libraries
-
Sort
public Sort(String field, @NonNull Sort.Order order)
Create a sort with the given name and order- Parameters:
field- The field to sort onorder- The order to sort results
-
Sort
public Sort(String field, GeolocationSort location)
Create a sort with the given name and location- Parameters:
field- The field name to sort onlocation- The location to sort on;
-
-