ElasticSort

zio.elasticsearch.ElasticSort$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

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

Constructs a type-safe instance of SortByField using the specified parameters.

Constructs a type-safe instance of SortByField using the specified parameters.

Attributes

S

document by which field sort is performed

field

the Field object representing the type-safe field to sort by

Returns:

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

final def sortBy(field: String): SortByField

Constructs an instance of SortByField using the specified parameters.

Constructs an instance of SortByField using the specified parameters.

Attributes

field

the field to sort by

Returns:

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

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

Constructs an instance of SortByScript using the specified parameters.

Constructs an instance of SortByScript using the specified parameters.

Attributes

script

a Script object containing sort logic

sourceType

type of script source

  • SourceType.NumberType: Used for numbers scripts.
  • SourceType.StringType: Used for text scripts.
Returns:

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