Skip to content

Commit 9282b51

Browse files
committed
Forgot that use_dis_max
1 parent 54ea561 commit 9282b51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

search_queries_query_string.go

+4
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func (q QueryStringQuery) Source() interface{} {
201201
query["tie_breaker"] = *q.tieBreaker
202202
}
203203

204+
if q.useDisMax != nil {
205+
query["use_dis_max"] = *q.useDisMax
206+
}
207+
204208
if q.defaultOper != "" {
205209
query["default_operator"] = q.defaultOper
206210
}

0 commit comments

Comments
 (0)