Fix "tie_breaker" to/fromJSON in MultiMatchQuery

This commit is contained in:
Josh Berman 2016-12-15 11:22:19 +02:00 committed by GitHub
parent f564d795c6
commit 23df21d88d

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"