github.com/altipla-consulting/ravendb-go-client@v0.1.3/suggestion_base.go (about)

     1  package ravendb
     2  
     3  // for documentation purposes only
     4  // TODO: could be simplified. We really only need SuggestionWithTerms, which is a superset
     5  // of SuggestionWithTerm
     6  type SuggestionBase interface {
     7  	SetOptions(*SuggestionOptions)
     8  }
     9  
    10  type SuggestionCommon struct {
    11  	Field   string
    12  	Options *SuggestionOptions
    13  }
    14  
    15  func (s *SuggestionCommon) SetOptions(options *SuggestionOptions) {
    16  	s.Options = options
    17  }