SearchIndexSchemaIndexSortSorter

data class SearchIndexSchemaIndexSortSorter(val fieldName: String? = null, val mode: String? = null, val order: String? = null, val sorterType: String? = null)

Constructors

Link copied to clipboard
constructor(fieldName: String? = null, mode: String? = null, order: String? = null, sorterType: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val fieldName: String? = null

The name of the field that is used to sort data. only required if sorter_type is FieldSort.

Link copied to clipboard
val mode: String? = null

The sorting method that is used when the field contains multiple values. valid values: Min, Max, Avg. only required if sorter_type is FieldSort.

Link copied to clipboard
val order: String? = null

The sort order. Data can be sorted in ascending(Asc) or descending(Desc) order. Default value: Asc.

Link copied to clipboard
val sorterType: String? = null

Data is sorted by Which fields or keys. valid values: PrimaryKeySort, FieldSort.