add document for search using curl PUT
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Dec 2010 16:15:30 +0000 (17:15 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Dec 2010 16:15:30 +0000 (17:15 +0100)
README

diff --git a/README b/README
index 935344b..2abce64 100644 (file)
--- a/README
+++ b/README
@@ -100,6 +100,9 @@ CouchDB examples:
 
        $ ./couchdb-trigger.pl http://localhost:5984/trigger_demo trigger/KinoSearch.pm
 
 
        $ ./couchdb-trigger.pl http://localhost:5984/trigger_demo trigger/KinoSearch.pm
 
+       $ curl -X PUT http://localhost:5984/trigger_demo/text -d '{"text":"foobar bla bla"}'
+       {"ok":true,"id":"text","rev":"1-cf9bb608f93af7f4e5e40656a6e50096"}
+
        $ curl 'http://localhost:5984/trigger_demo/_kinosearch?include_docs=true;q=foobar'
 
 
        $ curl 'http://localhost:5984/trigger_demo/_kinosearch?include_docs=true;q=foobar'