Update Client.hs

Addresses https://github.com/bitemyapp/bloodhound/issues/107
This commit is contained in:
flip111 2017-03-30 01:05:23 +02:00 committed by GitHub
parent bab35650c3
commit f00acae1e4

View File

@ -772,7 +772,10 @@ versionCtlParams cfg =
-- | 'indexDocument' is the primary way to save a single document in
-- Elasticsearch. The document itself is simply something we can
-- convert into a JSON 'Value'. The 'DocId' will function as the
-- primary key for the document.
-- primary key for the document. You are encouraged to generate
-- your own id's and not rely on ElasticSearch's automatid id
-- generation. Read more about it here:
-- https://github.com/bitemyapp/bloodhound/issues/107
--
-- >>> resp <- runBH' $ indexDocument testIndex testMapping defaultIndexDocumentSettings exampleTweet (DocId "1")
-- >>> print resp