highlight fix
This commit is contained in:
parent
3b53a45f75
commit
04bc4c24dc
|
@ -9,7 +9,7 @@ import (
|
||||||
func (q *QueryHighlight) Map() map[string]interface{} {
|
func (q *QueryHighlight) Map() map[string]interface{} {
|
||||||
results := structs.Map(q.params)
|
results := structs.Map(q.params)
|
||||||
if q.highlightQuery != nil {
|
if q.highlightQuery != nil {
|
||||||
results["query"] = q.highlightQuery.Map()
|
results["highlight_query"] = q.highlightQuery.Map()
|
||||||
}
|
}
|
||||||
if q.fields != nil && len(q.fields) > 0 {
|
if q.fields != nil && len(q.fields) > 0 {
|
||||||
fields := make(map[string]interface{})
|
fields := make(map[string]interface{})
|
||||||
|
|
Loading…
Reference in New Issue