git.iko.soy/typeable/bloodhound
on master help sign in
Update Client.hs

Addresses https://github.com/bitemyapp/bloodhound/issues/107

commitf00acae1e4edabe6d0d996664d52b301c8445750 authorflip111 <flip101@gmail.com> dateThu 30 Mar 2017, 01:05 (10 years ago) parentbab3565
1 file changed+4−1
src/Database/V5/Bloodhound/Client.hs+4−1
src/Database/V5/Bloodhound/Client.hs+4−1
@@ -772,7 +772,10 @@ versionCtlParams cfg =
772772-- | 'indexDocument' is the primary way to save a single document in
773773-- Elasticsearch. The document itself is simply something we can
774774-- convert into a JSON 'Value'. The 'DocId' will function as the
775−-- primary key for the document.
775+-- primary key for the document. You are encouraged to generate
776+-- your own id's and not rely on ElasticSearch's automatid id
777+-- generation. Read more about it here:
778+-- https://github.com/bitemyapp/bloodhound/issues/107
776779--
777780-- >>> resp <- runBH' $ indexDocument testIndex testMapping defaultIndexDocumentSettings exampleTweet (DocId "1")
778781-- >>> print resp