git.iko.soy/typeable/bloodhound
on master help sign in
fix
commit3a3a530ac3011d81d759b1bf12b39c570efb30ff authorAleksey Uimanov <s9gf4ult@gmail.com> dateSat 7 Dec 2019, 15:41 (7 years ago) parent7a88605
1 file changed+1−1
src/Database/V5/Bloodhound/Client.hs+1−1
src/Database/V5/Bloodhound/Client.hs+1−1
@@ -804,7 +804,7 @@ putMapping (IndexName indexName) (MappingName mappingName) mapping =
804804 where url = joinPath [indexName]
805805 -- "_mapping" and mappingName above were originally transposed
806806 -- erroneously. The correct API call is: "/INDEX/_mapping/MAPPING_NAME"
807− body = encode $ object
807+ body = Just $ encode $ object
808808 [ "mappings" .= mapping ]
809809
810810versionCtlParams :: IndexDocumentSettings -> [(Text, Maybe Text)]