mirror of
https://github.com/typeable/bloodhound.git
synced 2024-12-02 06:30:29 +03:00
Merge pull request #159 from bermanjosh/patch-1
Fix "tie_breaker" to/fromJSON in MultiMatchQuery
This commit is contained in:
commit
f3dcbd4440
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user