git.iko.soy/typeable/bloodhound
on master help sign in
Adjusts the format of the OR filter

Only verified on ES 1.2.1, but the fix is similiar to caecf0fe36ee12c26067081356269f45c11fe2fc.

commit33a2af469df2a9068eebf1ab8e00a41b6972047a authorBjørn Nordbø <bjorn@wearezeta.com> dateThu 12 Mar 2015, 16:50 (12 years ago) parent58ec8ad
1 file changed+5−4
src/Database/Bloodhound/Types.hs+5−4
src/Database/Bloodhound/Types.hs+5−4
@@ -1285,13 +1285,14 @@ instance Seminearring Filter where
12851285
12861286instance ToJSON Filter where
12871287 toJSON (AndFilter filters cache) =
1288− object ["and" .=
1288+ object ["and" .=
12891289 object [ "filters" .= fmap toJSON filters
1290− , "_cache" .= cache]]
1290+ , "_cache" .= cache]]
12911291
12921292 toJSON (OrFilter filters cache) =
1293− object ["or" .= fmap toJSON filters
1294− , "_cache" .= cache]
1293+ object ["or" .=
1294+ object [ "filters" .= fmap toJSON filters
1295+ , "_cache" .= cache]]
12951296
12961297 toJSON (NotFilter notFilter cache) =
12971298 object ["not" .=