From 37bbc43bbabd5e5f422065a0b3f5449580b84af5 Mon Sep 17 00:00:00 2001 From: Bin <49082129+songzhibin97@users.noreply.github.com> Date: Wed, 12 Jul 2023 10:44:59 +0800 Subject: [PATCH] Update query_multi_match.go MultiMatchType eq MatchTypeBestFields, field Can be empty --- query_multi_match.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query_multi_match.go b/query_multi_match.go index 0d5f2a2..3dc6caf 100644 --- a/query_multi_match.go +++ b/query_multi_match.go @@ -18,7 +18,7 @@ func (q *MultiMatchQuery) Map() map[string]interface{} { type multiMatchParams struct { Qry interface{} `structs:"query"` - Fields []string `structs:"fields"` + Fields []string `structs:"fields,omitempty"` Type MultiMatchType `structs:"type,string,omitempty"` TieBrk float32 `structs:"tie_breaker,omitempty"` Boost float32 `structs:"boost,omitempty"` -- 2.40.1