@@ -16,7 +16,7 @@ type SearchCmdable interface {
16
16
FTAliasAdd (ctx context.Context , index string , alias string ) * StatusCmd
17
17
FTAliasDel (ctx context.Context , alias string ) * StatusCmd
18
18
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
20
20
FTConfigGet (ctx context.Context , option string ) * MapMapStringInterfaceCmd
21
21
FTConfigSet (ctx context.Context , option string , value interface {}) * StatusCmd
22
22
FTCreate (ctx context.Context , index string , options * FTCreateOptions , schema ... * FieldSchema ) * StatusCmd
@@ -57,7 +57,7 @@ type FTCreateOptions struct {
57
57
NoFields bool
58
58
NoFreqs bool
59
59
StopWords []interface {}
60
- SkipInitalScan bool
60
+ SkipInitialScan bool
61
61
}
62
62
63
63
type FieldSchema struct {
@@ -70,7 +70,7 @@ type FieldSchema struct {
70
70
NoIndex bool
71
71
PhoneticMatcher string
72
72
Weight float64
73
- Seperator string
73
+ Separator string
74
74
CaseSensitive bool
75
75
WithSuffixtrie bool
76
76
VectorArgs * FTVectorArgs
@@ -285,7 +285,7 @@ type FTSearchSortBy struct {
285
285
type FTSearchOptions struct {
286
286
NoContent bool
287
287
Verbatim bool
288
- NoStopWrods bool
288
+ NoStopWords bool
289
289
WithScores bool
290
290
WithPayloads bool
291
291
WithSortKeys bool
@@ -808,13 +808,13 @@ func (c cmdable) FTAliasUpdate(ctx context.Context, index string, alias string)
808
808
}
809
809
810
810
// 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.
812
812
// The 'definition' parameter specifies the new definition for the index.
813
813
// For more information, please refer to the Redis documentation:
814
814
// [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 {
816
816
args := []interface {}{"FT.ALTER" , index }
817
- if skipInitalScan {
817
+ if skipInitialScan {
818
818
args = append (args , "SKIPINITIALSCAN" )
819
819
}
820
820
args = append (args , "SCHEMA" , "ADD" )
@@ -907,7 +907,7 @@ func (c cmdable) FTCreate(ctx context.Context, index string, options *FTCreateOp
907
907
args = append (args , "STOPWORDS" , len (options .StopWords ))
908
908
args = append (args , options .StopWords ... )
909
909
}
910
- if options .SkipInitalScan {
910
+ if options .SkipInitialScan {
911
911
args = append (args , "SKIPINITIALSCAN" )
912
912
}
913
913
}
@@ -1003,8 +1003,8 @@ func (c cmdable) FTCreate(ctx context.Context, index string, options *FTCreateOp
1003
1003
if schema .Weight > 0 {
1004
1004
args = append (args , "WEIGHT" , schema .Weight )
1005
1005
}
1006
- if schema .Seperator != "" {
1007
- args = append (args , "SEPERATOR " , schema .Seperator )
1006
+ if schema .Separator != "" {
1007
+ args = append (args , "SEPARATOR " , schema .Separator )
1008
1008
}
1009
1009
if schema .CaseSensitive {
1010
1010
args = append (args , "CASESENSITIVE" )
@@ -1694,7 +1694,7 @@ func FTSearchQuery(query string, options *FTSearchOptions) SearchQuery {
1694
1694
if options .Verbatim {
1695
1695
queryArgs = append (queryArgs , "VERBATIM" )
1696
1696
}
1697
- if options .NoStopWrods {
1697
+ if options .NoStopWords {
1698
1698
queryArgs = append (queryArgs , "NOSTOPWORDS" )
1699
1699
}
1700
1700
if options .WithScores {
@@ -1808,7 +1808,7 @@ func (c cmdable) FTSearchWithArgs(ctx context.Context, index string, query strin
1808
1808
if options .Verbatim {
1809
1809
args = append (args , "VERBATIM" )
1810
1810
}
1811
- if options .NoStopWrods {
1811
+ if options .NoStopWords {
1812
1812
args = append (args , "NOSTOPWORDS" )
1813
1813
}
1814
1814
if options .WithScores {
0 commit comments