Skip to content

Latest commit

 

History

History
150 lines (82 loc) · 4.14 KB

StringArrayFieldDefinition.md

File metadata and controls

150 lines (82 loc) · 4.14 KB

redis-om / StringArrayFieldDefinition

Interface: StringArrayFieldDefinition

A field representing an array of strings.

Hierarchy

Table of contents

Properties

Properties

alias

Optional alias: string

The default field name in Redis is the key name defined in the SchemaDefinition. Overrides the Redis key name if set.

Inherited from

BaseFieldDefinition.alias

Defined in

lib/schema/definition/base-field-definition.ts:12


caseSensitive

Optional caseSensitive: boolean

Is the original case of this field indexed with Redis OM. Defaults to false.

Inherited from

CaseSensitiveFieldDefinition.caseSensitive

Defined in

lib/schema/definition/casesensitive-field-definition.ts:7


indexed

Optional indexed: boolean

Is this field indexed and thus searchable with Redis OM. Defaults to the schema indexedDefault value, currently true.

Inherited from

BaseFieldDefinition.indexed

Defined in

lib/schema/definition/base-field-definition.ts:18


normalized

Optional normalized: boolean

Is this (sortable) field normalized when indexed. Defaults to true.

Inherited from

NormalizedFieldDefinition.normalized

Defined in

lib/schema/definition/normalized-field-definition.ts:7


separator

Optional separator: string

Due to how RediSearch works, strings and arrays are sometimes stored the same in Redis, as a simple string. This is the separator used to split those strings when it is an array. If your StringField contains this separator, this can cause problems. You can change it here to avoid those problems. Defaults to |.

Inherited from

SeparableFieldDefinition.separator

Defined in

lib/schema/definition/separable-field-definition.ts:9


sortable

Optional sortable: boolean

Enables sorting by this field.

Inherited from

SortableFieldDefinition.sortable

Defined in

lib/schema/definition/sortable-field-definition.ts:4


type

type: "string[]"

Yep. It's a string array.

Overrides

BaseFieldDefinition.type

Defined in

lib/schema/definition/string-array-field-definition.ts:10