Wed, Feb 23, 2011
Last week, I had to integrate Lucene full-text search engine with CouchDB. Here are some quick handy notes in case you have to deal with this integration.
Followed instructions from https://wiki.fluidproject.org/display/fluid/Setting+Up+CouchDB+and+Lucene
Install maven2:
Download the couchdb-lucene source:
Build everything:
Copy the assembled jar file into a proper directory, and give appropiate permissions:
Configure the proper options in /etc/couchdb/local.ini file. Add the following parameters at the end of the file:
Install the init file to start under services:
Edit the couchdb-lucene file and set the correct location of the run script
Now you can start the service using the usual service syntax:
Restart the couchdb service to apply configuration changes
Used this design document in martintest2 DB, it has a 'title' attribute where I will search:
Tried this command for a martintest2 DB..
corresponding to this 'register':
Making a fuzzy query: use the ~ parameter
© 2024. All rights reserved.