Merge pull request #159 from bermanjosh/patch-1

Fix "tie_breaker" to/fromJSON in MultiMatchQuery
This commit is contained in:
Michael Xavier 2016-12-17 13:56:59 -08:00 committed by GitHub
commit f3dcbd4440

View File

@ -2953,7 +2953,7 @@ instance ToJSON MultiMatchQuery where
, "query" .= query
, "operator" .= boolOp
, "zero_terms_query" .= ztQ
, "tiebreaker" .= tb
, "tie_breaker" .= tb
, "type" .= mmqt
, "cutoff_frequency" .= cf
, "analyzer" .= analyzer
@ -2968,7 +2968,7 @@ instance FromJSON MultiMatchQuery where
<*> o .: "query"
<*> o .: "operator"
<*> o .: "zero_terms_query"
<*> o .:? "tiebreaker"
<*> o .:? "tie_breaker"
<*> o .:? "type"
<*> o .:? "cutoff_frequency"
<*> o .:? "analyzer"