From 685eba4e5d8aeddc739a147b7b912d0cef88e11a Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Thu, 25 May 2017 17:31:39 -0700 Subject: [PATCH] tags_schema as of ES 5.x --- lib/searchhighlight.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/searchhighlight.go b/lib/searchhighlight.go index ac74947d..d2e39b15 100644 --- a/lib/searchhighlight.go +++ b/lib/searchhighlight.go @@ -8,7 +8,7 @@ func NewHighlight() *HighlightDsl { type HighlightDsl struct { Settings *HighlightEmbed `-` - TagSchema string `json:"tag_schema,omitempty"` + TagSchema string `json:"tags_schema,omitempty"` Fields map[string]HighlightEmbed `json:"fields,omitempty"` } @@ -38,7 +38,7 @@ func (t *HighlightDsl) MarshalJSON() ([]byte, error) { } if t.TagSchema != "" { - m["tag_schema"] = t.TagSchema + m["tags_schema"] = t.TagSchema } if t.Settings == nil {