mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Support RediSearch empty values (#3053)
* Support RediSearch empty values * Remove from enterprise
This commit is contained in:
@ -75,6 +75,8 @@ type FieldSchema struct {
|
||||
WithSuffixtrie bool
|
||||
VectorArgs *FTVectorArgs
|
||||
GeoShapeFieldType string
|
||||
IndexEmpty bool
|
||||
IndexMissing bool
|
||||
}
|
||||
|
||||
type FTVectorArgs struct {
|
||||
@ -1002,6 +1004,13 @@ func (c cmdable) FTCreate(ctx context.Context, index string, options *FTCreateOp
|
||||
if schema.WithSuffixtrie {
|
||||
args = append(args, "WITHSUFFIXTRIE")
|
||||
}
|
||||
if schema.IndexEmpty {
|
||||
args = append(args, "INDEXEMPTY")
|
||||
}
|
||||
if schema.IndexMissing {
|
||||
args = append(args, "INDEXMISSING")
|
||||
|
||||
}
|
||||
}
|
||||
cmd := NewStatusCmd(ctx, args...)
|
||||
_ = c(ctx, cmd)
|
||||
|
Reference in New Issue
Block a user