Each field can be either a single field definition or an array of definitions.
Use an array to index the same field multiple times with different types or aliases.
Example
// Single field definitions { name: SCHEMA_FIELD_TYPE.TEXT, age: SCHEMA_FIELD_TYPE.NUMERIC }
Example
// Same field indexed as both TEXT and TAG with different aliases { sku: [ { type:SCHEMA_FIELD_TYPE.TEXT, AS:'sku_text' }, { type:SCHEMA_FIELD_TYPE.TAG, AS:'sku_tag', SORTABLE:true } ]}
Schema definition for a RediSearch index.
Each field can be either a single field definition or an array of definitions. Use an array to index the same field multiple times with different types or aliases.
Example
Example