git.iko.soy/typeable/bloodhound
on master help sign in
fix
3a3a530Aleksey Uimanov
src/Database/V5/Bloodhound/Client.hs+1−1
@@ -804,7 +804,7 @@ putMapping (IndexName indexName) (MappingName mappingName) mapping =
804 where url = joinPath [indexName]
804 where url = joinPath [indexName]
805 -- "_mapping" and mappingName above were originally transposed
805 -- "_mapping" and mappingName above were originally transposed
806 -- erroneously. The correct API call is: "/INDEX/_mapping/MAPPING_NAME"
806 -- erroneously. The correct API call is: "/INDEX/_mapping/MAPPING_NAME"
807− body = encode $ object
807+ body = Just $ encode $ object
808 [ "mappings" .= mapping ]
808 [ "mappings" .= mapping ]
809
809
810versionCtlParams :: IndexDocumentSettings -> [(Text, Maybe Text)]
810versionCtlParams :: IndexDocumentSettings -> [(Text, Maybe Text)]