Package org.elasticsearch.search.sort
package org.elasticsearch.search.sort
-
InterfaceDescriptionCallbacks for storing extra data along with competitive sorts.Used with
BucketedSort.getValues(long, ResultBuilder)
to build results from the sorting operation. -
ClassDescriptionType specialized sort implementations designed for use in aggregations.Superclass for implementations of BucketedSort for
double
keys.Superclass for implementations of BucketedSort forfloat
keys.Superclass for implementations of BucketedSort forlong
keys.A sort builder to sort based on a document field.A geo distance based sorting on a geo point like field.MinAndMax<T extends Comparable<? super T>>A class that encapsulates a minimum and a maximum, that are of the same type andComparable
.A sort builder allowing to sort by score.Script sort builder allows to sort based on a custom script expression.ASortField
that first compares the shard index and then uses the document number (_doc) to tiebreak if the value is the same.SortBuilder<T extends SortBuilder<T>>A set of static factory methods forSortBuilder
s.AComparable
,DocValueFormat
aware wrapper around a sort value. -
Enum ClassDescriptionElasticsearch supports sorting by array or multi-valued fields.A sorting order.