Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Build couchdb-lucene application

  1. Checkout the repository by git clone https://github.com/rnewson/couchdb-lucene.git
  2. Enter into the application root directory by the command : cd couchdb-lucene
  3. Run the command:  mvn install
  4. Run the command: mvn
  5. Enter into the target folder you will find a tar and a zip folder.
  6. Unzip or Untar the folder and put it to a suitable location i.e /opt
  7. Rename the folder couchdb-lucene-<version>-dist.* to couchdb-lucene

 

Configure CouchDB

Configure the local.ini file located in the ubuntu machine  /etc/couchdb/ as the following settings.

Add Python hook script

[couchdb]
os_process_timeout=60000 ; increase the timeout from 5 seconds.

[external]
fti=/usr/bin/python /opt/couchdb-lucene/tools/couchdb-external-hook.py

[httpd_db_handlers]
_fti = {couch_httpd_external, handle_external_req, <<"fti">>}


Add proxy handler for CouchDB version 1.1 and above


[httpd_global_handlers]
_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985">>}

 

  • No labels