highlight fix

This commit is contained in:
Maxim Yanchuk 2023-11-02 16:12:39 +03:00
parent 3b53a45f75
commit 04bc4c24dc
1 changed files with 1 additions and 1 deletions

View File

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