git.iko.soy/typeable/bloodhound
on master help sign in
Fix doctest argument ordering
dc7b438Michael Xavier
src/Database/Bloodhound/Client.hs+1−1
@@ -333,7 +333,7 @@ deleteMapping (IndexName indexName)
333-- convert into a JSON 'Value'. The 'DocId' will function as the
333-- convert into a JSON 'Value'. The 'DocId' will function as the
334-- primary key for the document.
334-- primary key for the document.
335--
335--
336−-- >>> resp <- runBH' $ indexDocument defaultIndexDocumentSettings testIndex testMapping exampleTweet (DocId "1")
336+-- >>> resp <- runBH' $ indexDocument testIndex testMapping defaultIndexDocumentSettings exampleTweet (DocId "1")
337-- >>> print resp
337-- >>> print resp
338-- Response {responseStatus = Status {statusCode = 201, statusMessage = "Created"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Type","application/json; charset=UTF-8"),("Content-Length","74")], responseBody = "{\"_index\":\"twitter\",\"_type\":\"tweet\",\"_id\":\"1\",\"_version\":1,\"created\":true}", responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}
338-- Response {responseStatus = Status {statusCode = 201, statusMessage = "Created"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Type","application/json; charset=UTF-8"),("Content-Length","74")], responseBody = "{\"_index\":\"twitter\",\"_type\":\"tweet\",\"_id\":\"1\",\"_version\":1,\"created\":true}", responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}
339indexDocument :: (ToJSON doc, MonadBH m) => IndexName -> MappingName
339indexDocument :: (ToJSON doc, MonadBH m) => IndexName -> MappingName