redis/go-redis

Typo in FT.CREATE command (SEPARATOR vs SEPERATOR)

zhenghaoz opened this issue · 1 comments

The keyword for separator is SEPARATOR rather than SEPERATOR.

Expected Behavior

https://redis.io/docs/latest/commands/ft.create/

SEPARATOR {sep} for TAG attributes, indicates how the text contained in the attribute is to be split into individual tags. The default is ,. The value must be a single character.

Current Behavior

go-redis/search_commands.go

Lines 1006 to 1008 in ad131f4

if schema.Seperator != "" {
args = append(args, "SEPERATOR", schema.Seperator)
}

Possible Solution

Fix the typo from SEPERATOR to SEPERATOR.

This issue is fixed as a part of #3132