func (a *Autocompleter) SuggestOpts(prefix string, opts SuggestOptions) (ret []Suggestion, err error) {
	conn := a.pool.Get()
	defer conn.Close()

	args, inc := a.Serialize(prefix, opts)
	vals, err := redis.Strings(conn.Do("FT.SUGGET", args...))
	if err != nil {
		return nil, err
	}

	ret = ProcessSugGetVals(vals, inc, opts.WithScores, opts.WithPayloads)

	return
}
// SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix.
// SuggestOptions are passed allowing you specify if the returned values contain a payload, and scores.
// If SuggestOptions.Fuzzy is set, we also complete for prefixes that are in 1 Levenshtein distance from the
// given prefix
SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix.
SuggestOptions are passed allowing you specify if the returned values contain a payload, and scores.
If SuggestOptions.Fuzzy is set, we also complete for prefixes that are in 1 Levenshtein distance from the
given prefix
// SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix . // SuggestOptions are passed allowing you specify if the returned values contain a payload and scores . // If SuggestOptions . Fuzzy is set we also complete for prefixes that are in 1 Levenshtein distance from the // given prefix
func (a *Autocompleter) SuggestOpts(prefix string, opts SuggestOptions) (ret []Suggestion, err error) {
	conn := a.pool.Get()
	defer conn.Close()
	args, inc := a.Serialize(prefix, opts)
	vals, err := redis.Strings(conn.Do("FT.SUGGET", args...))
	if err != nil {
		return nil, err
	}
	ret = ProcessSugGetVals(vals, inc, opts.WithScores, opts.WithPayloads)
	return
}
func ( a * Autocompleter ) SuggestOpts ( prefix string , opts SuggestOptions ) ( ret [ ] Suggestion , err error ) { conn := a . pool . Get ( ) defer conn . Close ( ) args , inc := a . Serialize ( prefix , opts ) vals , err := redis . Strings ( conn . Do ( " " , args ... ) ) if err != nil { return nil , err } ret = ProcessSugGetVals ( vals , inc , opts . WithScores , opts . WithPayloads ) return }
SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix.
SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix .