projects
/
angular-mojolicious.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
476fb93
)
add document for search using curl PUT
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 9 Dec 2010 16:15:30 +0000
(17:15 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 9 Dec 2010 16:15:30 +0000
(17:15 +0100)
README
patch
|
blob
|
history
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'