git.iko.soy/typeable/bloodhound
on master help sign in
lets do this
commitf35ea3d6eb64d76fd7167909f59b70cc17e4ae3d authorChris Allen <cma@bitemyapp.com> dateSun 28 Feb 2016, 21:00 (11 years ago) parent27c2923
2 files changed+5−4
bloodhound.cabal+3−3 src/Database/Bloodhound/Types.hs+2−1
bloodhound.cabal+3−3
@@ -32,14 +32,14 @@ library
3232 build-depends: base >= 4.3 && <5,
3333 bytestring >= 0.10.0 && <0.11,
3434 containers >= 0.5.0.0 && <0.6,
35− aeson >= 0.10 && <0.11,
35+ aeson >= 0.11 && <0.12,
3636 http-client >= 0.3 && <0.5,
3737 network-uri >= 2.6 && <2.7,
3838 semigroups >= 0.15 && <0.19,
39− time >= 1.4 && <1.6,
39+ time >= 1.4 && <1.7,
4040 text >= 0.11 && <1.3,
4141 mtl >= 1.0 && <2.3,
42− transformers >= 0.2 && <0.5,
42+ transformers >= 0.2 && <0.6,
4343 http-types >= 0.8 && <0.10,
4444 vector >= 0.10.9 && <0.12,
4545 scientific >= 0.3.0.0 && <0.4.0.0,
src/Database/Bloodhound/Types.hs+2−1
@@ -13,7 +13,7 @@
1313-------------------------------------------------------------------------------
1414-- |
1515-- Module : Database.Bloodhound.Types
16−-- Copyright : (C) 2014 Chris Allen
16+-- Copyright : (C) 2014, 2015, 2016 Chris Allen
1717-- License : BSD-style (see the file LICENSE)
1818-- Maintainer : Chris Allen <cma@bitemyapp.com
1919-- Stability : provisional
@@ -2082,6 +2082,7 @@ instance ToJSON Query where
20822082 toJSON (TermsQuery fieldName terms) =
20832083 object [ "terms" .= object conjoined ]
20842084 where conjoined = [fieldName .= terms]
2085+
20852086 toJSON (IdsQuery idsQueryMappingName docIds) =
20862087 object [ "ids" .= object conjoined ]
20872088 where conjoined = [ "type" .= idsQueryMappingName