Permalink
Browse files

enhance instructions for couchdb 1.1 proxy feature.

  • Loading branch information...
1 parent 9460025 commit 419ec2873bbb1737bb44acebb3b8ba1f8db89edd Robert Newson committed Jul 24, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
@@ -52,6 +52,7 @@ mvn war:war
The following settings are needed in CouchDB's local.ini file in order for it to communicate with couchdb-lucene;
+<h2>For CouchDB versions prior to 1.1</h2>
<pre>
[couchdb]
os_process_timeout=60000 ; increase the timeout from 5 seconds.
@@ -63,6 +64,18 @@ fti=/path/to/python /path/to/couchdb-lucene/tools/couchdb-external-hook.py
_fti = {couch_httpd_external, handle_external_req, &lt;&lt;"fti"&gt;&gt;}
</pre>
+<h2>For CouchDB versions from 1.1 onward</h2>
+<pre>
+[httpd_global_handlers]
+_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985">>}
+</pre>
+
+<b>Note:</b> The urls via the proxy have a different form:
+
+<pre>http://127.0.0.1:5984/_fti/local/db1/_design/cl-test/idx?q=hello</pre>
+
+The "local" matches the name of the key from <code>couchdb-lucene.ini</code>.
+
<h2>Hook options</h2>
<table>

0 comments on commit 419ec28

Please sign in to comment.