sdk-go-zincsearch
sdk-go-zincsearch copied to clipboard
[terms] doesn't support values of type: map[string]interface {}
How to use trem query, The format required in the sdk is map[string]map[string]interface{}
// SetTerms gets a reference to the given map[string]map[string]interface{} and assigns it to the Terms field. func (o *MetaQuery) SetTerms(v map[string]map[string]interface{}) { o.Terms = &v }
report error
reason: [terms] doesn't support values of type: map[string]interface {}"}
Check out the zincsearch code https://github.com/zincsearch/zincsearch/blob/main/pkg/uquery/query/terms.go The required format is query map[string]interface{}
how to use ?
Suggest use https://github.com/elastic/go-elasticsearch v7, this SDK is not good. Thanks
See that the latest version is 8.9.0. Is it also available
Suggest use https://github.com/elastic/go-elasticsearch v7, this SDK is not good. Thanks
Did your SetTerms work?
How to use SetTerms?
This sdk has no examples of related functions.