SearchIndexSchemaFieldSchema

data class SearchIndexSchemaFieldSchema(val analyzer: String? = null, val enableSortAndAgg: Boolean? = null, val fieldName: String, val fieldType: String, val index: Boolean? = null, val isArray: Boolean? = null, val store: Boolean? = null)

Constructors

Link copied to clipboard
constructor(analyzer: String? = null, enableSortAndAgg: Boolean? = null, fieldName: String, fieldType: String, index: Boolean? = null, isArray: Boolean? = null, store: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val analyzer: String? = null

Specifies the type of the analyzer that you want to use. If fieldType is set to Text, you can configure this parameter. Otherwise, the default analyzer type single-word tokenization is used.

Link copied to clipboard

Specifies whether to enable sorting and aggregation. Type: Boolean. Sorting can be enabled only for fields for which enable_sort_and_agg is set to true.

Link copied to clipboard

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

Link copied to clipboard

Specifies the type of the field. Valid values: Text, Long, Double, Boolean, Keyword, Date, GeoPoint, Nested.

Link copied to clipboard
val index: Boolean? = null

Specifies whether to enable indexing for the column. Type: Boolean.

Link copied to clipboard
val isArray: Boolean? = null

Specifies whether the value is an array. Type: Boolean.

Link copied to clipboard
val store: Boolean? = null

Specifies whether to store the value of the field in the search index. Type: Boolean. If you set store to true, you can read the value of the field from the search index without querying the data table. This improves query performance.