MCPcopy
hub / github.com/redis/go-redis / NewSearchBuilder

Method NewSearchBuilder

search_builders.go:25–28  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

23// NewSearchBuilder creates a new SearchBuilder for FT.SEARCH commands.
24// EXPERIMENTAL: this API is subject to change, use with caution.
25func (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.
31func (b *SearchBuilder) WithScores() *SearchBuilder {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected