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{})