Skip to content


Subversion checkout URL

You can clone with
Download ZIP


couchdb-lucene over bigcouch NullPointerException #89

snez opened this Issue · 2 comments

2 participants


I have a default bigcouch and default couchdb-lucene instance working together. Then I have this view in bigcouch:

"_id": "_design/fullname",
"_rev": "1-e6987882fac677cb7ba367b6b0d6b471",
"fulltext": {
"name": {
"index": "function(doc) { var ret=new Document(); ret.add(doc.surname); return ret }"

When I try to make a query like http://localhost:5984/play/_fti/_design/fullname/name?q=chris* I get an exception:

chris@Christos:~ $ couch-lucene
2010-10-27 14:47:06,955 INFO [Main] Index output goes to: /usr/local/Cellar/couchdb-lucene/0.5.3/indexes
2010-10-27 14:47:06,991 INFO [Main] Accepting connections with SelectChannelConnector@localhost:5985
2010-10-27 14:48:14,258 ERROR [log] /hello_bigcouch/_fti/_design/fullname/name
at com.github.rnewson.couchdb.lucene.couchdb.Couch.(
at com.github.rnewson.couchdb.lucene.LuceneServlet.getCouch(
at com.github.rnewson.couchdb.lucene.LuceneServlet.getIndexer(
at com.github.rnewson.couchdb.lucene.LuceneServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.mortbay.jetty.servlet.ServletHolder.handle(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.servlet.UserAgentFilter.doFilter(
at org.mortbay.servlet.GzipFilter.doFilter(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.jetty.servlet.ServletHandler.handle(
at org.mortbay.jetty.handler.ContextHandler.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.Server.handle(
at org.mortbay.jetty.HttpConnection.handleRequest(
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
at org.mortbay.jetty.HttpParser.parseNext(
at org.mortbay.jetty.HttpParser.parseAvailable(
at org.mortbay.jetty.HttpConnection.handle(
at org.mortbay.thread.QueuedThreadPool$


Can you include the setup you used to hook couchdb-lucene to bigcouch?


Do you mean hardware or configuration?
/opt/bigcouch/etc/local.ini or
/usr/local/etc/couchdb/local.ini ?

I'm on OSX 10.6.4

Not sure if I changed my config since this error but here it is:
r = 1
w = 1
q = 1

os_process_timeout=60000 ; increase the timeout from 5 seconds.

fti=/usr/bin/python /usr/local/Cellar/couchdb-lucene/0.5.3/tools/

_fti = {couch_httpd_external, handle_external_req, <<"fti">>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.