mirror of
https://github.com/typeable/bloodhound.git
synced 2024-09-11 08:25:32 +03:00
Update Client.hs
Addresses https://github.com/bitemyapp/bloodhound/issues/107
This commit is contained in:
parent
bab35650c3
commit
f00acae1e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user