zincsearch / sdk-go-zincsearch

Go SDK Client for ZincSearch
https://docs.zincsearch.com
Apache License 2.0
33 stars 5 forks source link

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

Open ickeep opened 1 year ago

ickeep commented 1 year ago

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 ?

hengfeiyang commented 1 year ago

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

ickeep commented 1 year ago

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

feiyangbeyond commented 6 months ago

Did your SetTerms work?

How to use SetTerms?

This sdk has no examples of related functions.