Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion redisearch/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type Query struct {

Paging Paging
Flags Flag
Slop int
Slop *int

Filters []Filter
InKeys []string
Expand Down Expand Up @@ -139,6 +139,10 @@ func (q Query) serialize() redis.Args {
args = args.Add("NOCONTENT")
}

if q.Slop != nil {
args = args.Add("SLOP", *q.Slop)
}

if q.Flags&QueryInOrder != 0 {
args = args.Add("INORDER")
}
Expand Down