Skip to content

Latest commit

 

History

History
254 lines (135 loc) · 4.32 KB

Field.md

File metadata and controls

254 lines (135 loc) · 4.32 KB

redis-om / Field

Class: Field

Describes a field in a Schema.

Table of contents

Constructors

Accessors

Constructors

constructor

new Field(name, definition)

Creates a Field.

Parameters

Name Type Description
name string The name of the Field.
definition FieldDefinition The underlying FieldDefinition.

Defined in

lib/schema/field.ts:17

Accessors

caseSensitive

get caseSensitive(): boolean

The case-sensitivity of the field.

Returns

boolean

Defined in

lib/schema/field.ts:55


hashField

get hashField(): string

The field name used to store this Field in a Hash.

Returns

string

Defined in

lib/schema/field.ts:33


indexed

get indexed(): boolean

Indicates the field as being indexed—and thus queryable—by RediSearch.

Returns

boolean

Defined in

lib/schema/field.ts:60


isArray

get isArray(): boolean

Is this type an array or not.

Returns

boolean

Defined in

lib/schema/field.ts:85


jsonPath

get jsonPath(): string

The JSONPath used to store this Field in a JSON document.

Returns

string

Defined in

lib/schema/field.ts:38


matcher

get matcher(): null | string

The phonetic matcher for the field.

Returns

null | string

Defined in

lib/schema/field.ts:80


name

get name(): string

The name of the field.

Returns

string

Defined in

lib/schema/field.ts:23


normalized

get normalized(): boolean

Indicates that the field is normalized. Ignored if sortable is false.

Returns

boolean

Defined in

lib/schema/field.ts:70


separator

get separator(): string

The separator for string[] fields when stored in Hashes.

Returns

string

Defined in

lib/schema/field.ts:45


sortable

get sortable(): boolean

Indicates that the field as sortable.

Returns

boolean

Defined in

lib/schema/field.ts:50


stemming

get stemming(): boolean

Indicates that the field as indexed with stemming support.

Returns

boolean

Defined in

lib/schema/field.ts:65


type

get type(): FieldType

The type of the field.

Returns

FieldType

Defined in

lib/schema/field.ts:28


weight

get weight(): null | number

The search weight of the field.

Returns

null | number

Defined in

lib/schema/field.ts:75