GO SDK specification missing minimum_should_match field
wrong type
I have a customer using GO client and they're actively using `terms_set` in their application. The [docs](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-set-query) say that one of the possible parameters is `minimum_should_match`. However, when using Go SDK, it doesn't have such a field for this query, and moreover, even the [official specification](https://github.com/elastic/elasticsearch-specification/blob/5bf86339cd4bda77d07f6eaa6789b72f9c0279b1/specification/_types/query_dsl/term.ts#L249-L262) doesn't have it either. At the same time, if they manually add this field to the query (e.g. when debugging via kibana console), it seems to work fine.
So as far as they can tell `minimum_should_match` is properly recognized by `terms_set` and it works as expected, but for some reason it's not part of the official spec and is not available in our SDK, despite being mentioned in the docs. Therefore they cannot use it "cleanly", without hacking the query assembled by the sdk and manually injecting the field into it.
So the question is: Why don't I see the `minimum_should_match` field in the spec and in Go SDK?
关闭于 2025-12-22 1 条评论