@@ -16,7 +16,7 @@ type SearchCmdable interface {
1616 FTAliasAdd (ctx context.Context , index string , alias string ) * StatusCmd
1717 FTAliasDel (ctx context.Context , alias string ) * StatusCmd
1818 FTAliasUpdate (ctx context.Context , index string , alias string ) * StatusCmd
19- FTAlter (ctx context.Context , index string , skipInitalScan bool , definition []interface {}) * StatusCmd
19+ FTAlter (ctx context.Context , index string , skipInitialScan bool , definition []interface {}) * StatusCmd
2020 FTConfigGet (ctx context.Context , option string ) * MapMapStringInterfaceCmd
2121 FTConfigSet (ctx context.Context , option string , value interface {}) * StatusCmd
2222 FTCreate (ctx context.Context , index string , options * FTCreateOptions , schema ... * FieldSchema ) * StatusCmd
@@ -57,7 +57,7 @@ type FTCreateOptions struct {
5757 NoFields bool
5858 NoFreqs bool
5959 StopWords []interface {}
60- SkipInitalScan bool
60+ SkipInitialScan bool
6161}
6262
6363type FieldSchema struct {
@@ -70,7 +70,7 @@ type FieldSchema struct {
7070 NoIndex bool
7171 PhoneticMatcher string
7272 Weight float64
73- Seperator string
73+ Separator string
7474 CaseSensitive bool
7575 WithSuffixtrie bool
7676 VectorArgs * FTVectorArgs
@@ -285,7 +285,7 @@ type FTSearchSortBy struct {
285285type FTSearchOptions struct {
286286 NoContent bool
287287 Verbatim bool
288- NoStopWrods bool
288+ NoStopWords bool
289289 WithScores bool
290290 WithPayloads bool
291291 WithSortKeys bool
@@ -808,13 +808,13 @@ func (c cmdable) FTAliasUpdate(ctx context.Context, index string, alias string)
808808}
809809
810810// FTAlter - Alters the definition of an existing index.
811- // The 'index' parameter specifies the index to alter, and the 'skipInitalScan ' parameter specifies whether to skip the initial scan.
811+ // The 'index' parameter specifies the index to alter, and the 'skipInitialScan ' parameter specifies whether to skip the initial scan.
812812// The 'definition' parameter specifies the new definition for the index.
813813// For more information, please refer to the Redis documentation:
814814// [FT.ALTER]: (https://redis.io/commands/ft.alter/)
815- func (c cmdable ) FTAlter (ctx context.Context , index string , skipInitalScan bool , definition []interface {}) * StatusCmd {
815+ func (c cmdable ) FTAlter (ctx context.Context , index string , skipInitialScan bool , definition []interface {}) * StatusCmd {
816816 args := []interface {}{"FT.ALTER" , index }
817- if skipInitalScan {
817+ if skipInitialScan {
818818 args = append (args , "SKIPINITIALSCAN" )
819819 }
820820 args = append (args , "SCHEMA" , "ADD" )
@@ -907,7 +907,7 @@ func (c cmdable) FTCreate(ctx context.Context, index string, options *FTCreateOp
907907 args = append (args , "STOPWORDS" , len (options .StopWords ))
908908 args = append (args , options .StopWords ... )
909909 }
910- if options .SkipInitalScan {
910+ if options .SkipInitialScan {
911911 args = append (args , "SKIPINITIALSCAN" )
912912 }
913913 }
@@ -1003,8 +1003,8 @@ func (c cmdable) FTCreate(ctx context.Context, index string, options *FTCreateOp
10031003 if schema .Weight > 0 {
10041004 args = append (args , "WEIGHT" , schema .Weight )
10051005 }
1006- if schema .Seperator != "" {
1007- args = append (args , "SEPERATOR " , schema .Seperator )
1006+ if schema .Separator != "" {
1007+ args = append (args , "SEPARATOR " , schema .Separator )
10081008 }
10091009 if schema .CaseSensitive {
10101010 args = append (args , "CASESENSITIVE" )
@@ -1694,7 +1694,7 @@ func FTSearchQuery(query string, options *FTSearchOptions) SearchQuery {
16941694 if options .Verbatim {
16951695 queryArgs = append (queryArgs , "VERBATIM" )
16961696 }
1697- if options .NoStopWrods {
1697+ if options .NoStopWords {
16981698 queryArgs = append (queryArgs , "NOSTOPWORDS" )
16991699 }
17001700 if options .WithScores {
@@ -1808,7 +1808,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
18081808 if options .Verbatim {
18091809 args = append (args , "VERBATIM" )
18101810 }
1811- if options .NoStopWrods {
1811+ if options .NoStopWords {
18121812 args = append (args , "NOSTOPWORDS" )
18131813 }
18141814 if options .WithScores {
0 commit comments