rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 147 forks source link

Configuration for CouchDB 2.3.0 #273

Closed misilot closed 5 years ago

misilot commented 5 years ago

Hi, can the readme be updated to show how to enable the connection now that in 2.3.0 [httpd_db_handlers] has been removed from the configuration? Thanks!

gstilman commented 5 years ago

@misilot Did you every figure this out? Getting 500 errors

misilot commented 5 years ago

@gstilman from what I can tell is support for httpd_db_handlers is not available in 2.3.x.

So what we ended up doing is a proxy pass in apache directly to the lucene endpoint instead of proxying through couchdb.

rnewson commented 5 years ago

yes, that's right. That degree of pluggability was removed due to repeated security issues with it.

andreyvk commented 5 years ago

@misilot could you please elaborate on that last comment about the "proxy pass in apache directly"? We're having hard time making couchdb 2.3.1 talk to couchdb-lucene. This is pretty much the only post available that looks like our problem and there's no concrete steps listed )

@rnewson could you also suggest smth. The documentation doesnt seem to be correct. I've tried various ways to no avail

misilot commented 5 years ago

@andreyvk Something like this in our apache config. Where couchdb-lucene is listening on port 5985, so we can access it via http://webserver/_fti/ and than pass any arguments you would have done to couch after the last /

<IfModule proxy_http_module>
      ProxyPreserveHost On
      ProxyPassMatch "/_fti/(.*)$" "http://localhost:5985/$1" timeout=30
      ProxyPassReverse "/_fti/(.*)$" "http://localhost:5985/$1" timeout=30
</IfModule>
andreyvk commented 5 years ago

Thank you so much! Let me try that.