From 04bc4c24dcd052e6c992bd8fd4e0230e877e9914 Mon Sep 17 00:00:00 2001 From: "maxim.yanchuk" Date: Thu, 2 Nov 2023 16:12:39 +0300 Subject: [PATCH] highlight fix --- highlight.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlight.go b/highlight.go index 70b1410..c52c9b3 100644 --- a/highlight.go +++ b/highlight.go @@ -9,7 +9,7 @@ import ( func (q *QueryHighlight) Map() map[string]interface{} { results := structs.Map(q.params) if q.highlightQuery != nil { - results["query"] = q.highlightQuery.Map() + results["highlight_query"] = q.highlightQuery.Map() } if q.fields != nil && len(q.fields) > 0 { fields := make(map[string]interface{})