ElasticSort

zio.elasticsearch.ElasticSort
object ElasticSort

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def sortBy[S](field: Field[S, _]): SortByField

Constructs a type-safe instance of zio.elasticsearch.query.sort.SortByField using the specified parameters.

Constructs a type-safe instance of zio.elasticsearch.query.sort.SortByField using the specified parameters.

Type parameters

S

document by which field sort is performed

Value parameters

field

the type-safe field to sort by

Attributes

Returns

an instance of zio.elasticsearch.query.sort.SortByField that represents sort by field operation to be performed.

final def sortBy(field: String): SortByField

Constructs an instance of zio.elasticsearch.query.sort.SortByField using the specified parameters.

Constructs an instance of zio.elasticsearch.query.sort.SortByField using the specified parameters.

Value parameters

field

the field to sort by

Attributes

Returns

an instance of zio.elasticsearch.query.sort.SortByField that represents sort by field operation to be performed.

final def sortBy(script: Script, sourceType: SourceType): SortByScript

Constructs an instance of zio.elasticsearch.query.sort.SortByScript using the specified parameters.

Constructs an instance of zio.elasticsearch.query.sort.SortByScript using the specified parameters.

Value parameters

script

a script containing sort logic

sourceType

type of script source

Attributes

Returns

an instance of zio.elasticsearch.query.sort.SortByScript that represents sort by script operation to be performed.