Class: HNSWVectorField
Defined in: schema/fields.ts:322
HNSWVectorField for HNSW algorithm
Extends
Constructors
Constructor
new HNSWVectorField(
name,attrs):HNSWVectorField
Defined in: schema/fields.ts:323
Parameters
name
string
attrs
Returns
HNSWVectorField
Overrides
Methods
toRedisField()
toRedisField(
isJson):any
Defined in: schema/fields.ts:335
Convert this field to Redis schema field format. Each subclass must implement this method to return the appropriate Redis field type.
Parameters
isJson
boolean
Whether the index uses JSON storage (affects field naming with $.prefix)
Returns
any
Overrides
Properties
attrs
readonlyattrs:HNSWVectorFieldAttrs
Defined in: schema/fields.ts:325
Inherited from
name
readonlyname:string
Defined in: schema/fields.ts:30
Inherited from
path?
optionalpath?:string|null
Defined in: schema/fields.ts:33
Inherited from
type
readonlytype:string
Defined in: schema/fields.ts:31