Class: FieldSort

FieldSort


<private> new FieldSort()

Members


<private> toJSON

Serializes this query to JSON for network dispatch.

Methods


descending(descending)

Specifies whether to sort descending or not

Parameters:
Name Type Description
descending boolean
Returns:
Type
SearchSort.FieldSort

missing(missing)

Specifies the missing behaviour for the field sort.

Parameters:
Name Type Description
missing string
Returns:
Type
SearchSort.FieldSort

mode(mode)

Specifies the mode for the field sort.

Parameters:
Name Type Description
mode string
Returns:
Type
SearchSort.FieldSort

type(type)

Specifies the type for the field sort.

Parameters:
Name Type Description
type string
Returns:
Type
SearchSort.FieldSort