sdk-go-zincsearch icon indicating copy to clipboard operation
sdk-go-zincsearch copied to clipboard

[terms] doesn't support values of type: map[string]interface {}

Open ickeep opened this issue 1 year ago • 3 comments

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 ?

ickeep avatar Jul 15 '23 12:07 ickeep

Suggest use https://github.com/elastic/go-elasticsearch v7, this SDK is not good. Thanks

hengfeiyang avatar Jul 28 '23 09:07 hengfeiyang

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

ickeep avatar Jul 31 '23 06:07 ickeep

Did your SetTerms work?

How to use SetTerms?

This sdk has no examples of related functions.

feiyangbeyond avatar May 09 '24 09:05 feiyangbeyond