Skip to content
17 changes: 11 additions & 6 deletions search_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ type SpellCheckTerms struct {
}

type FTExplainOptions struct {
// Dialect 1,3 and 4 are deprecated since redis 8.0
Dialect string
}

Expand Down Expand Up @@ -261,7 +262,8 @@ type FTAggregateOptions struct {
WithCursor bool
WithCursorOptions *FTAggregateWithCursor
Params map[string]interface{}
DialectVersion int
// Dialect 1,3 and 4 are deprecated since redis 8.0
DialectVersion int
}

type FTSearchFilter struct {
Expand Down Expand Up @@ -293,8 +295,9 @@ type FTSearchSortBy struct {
// More information about the options can be found
// in the documentation for FT.SEARCH https://redis.io/docs/latest/commands/ft.search/
type FTSearchOptions struct {
NoContent bool
Verbatim bool
NoContent bool
Verbatim bool
// NoStopWords is deprecated since redis 8.0
NoStopWords bool
WithScores bool
WithPayloads bool
Expand Down Expand Up @@ -322,8 +325,9 @@ type FTSearchOptions struct {
Limit int
// CountOnly sets LIMIT 0 0 to get the count - number of documents in the result set without actually returning the result set.
// When using this option, the Limit and LimitOffset options are ignored.
CountOnly bool
Params map[string]interface{}
CountOnly bool
Params map[string]interface{}
// Dialect 1,3 and 4 are deprecated since redis 8.0
DialectVersion int
}

Expand Down Expand Up @@ -440,7 +444,8 @@ type IndexDefinition struct {
type FTSpellCheckOptions struct {
Distance int
Terms *FTSpellCheckTerms
Dialect int
// Dialect 1,3 and 4 are deprecated since redis 8.0
Dialect int
}

type FTSpellCheckTerms struct {
Expand Down
Loading
Loading