@@ -64,13 +64,14 @@ import Database.Bloodhound.Types
6464-- >>> :set -XOverloadedStrings
6565-- >>> import Database.Bloodhound
6666-- >>> import Test.DocTest.Prop (assert)
67−-- >>> error "blah"
68−-- no trailing slashes in servers, library handles building the path.
6967-- >>> let testServer = (Server "http://localhost:9200")
7068-- >>> let testIndex = IndexName "twitter"
7169-- >>> let testMapping = MappingName "tweet"
72−-- defaultIndexSettings is exported by Database.Bloodhound as well
7370-- >>> let defaultIndexSettings = IndexSettings (ShardCount 3) (ReplicaCount 2)
71+-- >>> _ <- deleteIndex testServer testIndex
72+
73+-- no trailing slashes in servers, library handles building the path.
74+-- defaultIndexSettings is exported by Database.Bloodhound as well
7475
7576mkShardCount :: Int -> Maybe ShardCount
7677mkShardCount n
@@ -124,10 +125,9 @@ getStatus (Server server) = do
124125
125126-- | createIndex will create an index given a 'Server',
126127-- 'IndexSettings', and an 'IndexName'
127−
128128-- >>> response <- createIndex testServer defaultIndexSettings testIndex
129−-- >>> assert $ respIsTwoHunna response
130−-- >>> assert False
129+-- >>> respIsTwoHunna response
130+-- True
131131createIndex :: Server -> IndexSettings -> IndexName -> IO Reply
132132createIndex (Server server) indexSettings (IndexName indexName) =
133133 put url body