NewSearchBuilder creates a new SearchBuilder for FT.SEARCH commands. EXPERIMENTAL: this API is subject to change, use with caution.
(ctx context.Context, index, query string)
| 23 | // NewSearchBuilder creates a new SearchBuilder for FT.SEARCH commands. |
| 24 | // EXPERIMENTAL: this API is subject to change, use with caution. |
| 25 | func (c *Client) NewSearchBuilder(ctx context.Context, index, query string) *SearchBuilder { |
| 26 | b := &SearchBuilder{c: c, ctx: ctx, index: index, query: query, options: &FTSearchOptions{LimitOffset: -1}} |
| 27 | return b |
| 28 | } |
| 29 | |
| 30 | // WithScores includes WITHSCORES. |
| 31 | func (b *SearchBuilder) WithScores() *SearchBuilder { |
no outgoing calls
no test coverage detected