incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Rotem <doronro...@gmail.com>
Subject Help using couchdb-lucene 0.6.0
Date Fri, 08 Jul 2011 17:18:17 GMT
Hi,

Hope this is the right place to ask help on couchdb-lucene.
I am trying to use it on Mac OS X 10.6.4

I already had a couchdb running on my mac. I installed couchdb-lucene using:
brew install couchdb-lucene


i configured both /usr/local/etc/couchdb/default.ini and
/usr/local/etc/couchdb/local.ini:

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

[external]
fti=/Users/doron/.virtualenvs/py24/bin/python
/usr/local/Cellar/couchdb-lucene/0.6.0/tools/couchdb-external-hook.py
--remote-host=http://127.0.0.1 --remote-port=5986

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



as you can see my couchdb runs on port 5986, not 5984.
i wasn't sure the --remote-port args worked so I changed the
couchdb-external-hook.py file to have 5986 as default.


Starting couchdb:

Apache CouchDB 1.0.2 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5986/



Starting couchdb-lucene:

/usr/local/Cellar/couchdb-lucene/0.6.0/bin/run

2011-07-07 18:05:06,014 INFO [Main] Index output goes to:
/usr/local/Cellar/couchdb-lucene/0.6.0/indexes
2011-07-07 18:05:06,098 INFO [Main] Accepting connections with
SelectChannelConnector@localhost:5985
Jul 7, 2011 6:05:06 PM org.mortbay.log.Slf4jLog info
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
Jul 7, 2011 6:05:06 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.20
Jul 7, 2011 6:05:06 PM org.mortbay.log.Slf4jLog info
INFO: Started SelectChannelConnector@localhost:5985



my design doc:

{
   "_id": "_design/search",
   "_rev": "6-ffa3f1a09f6f12f92ce3766c5ebe64f6",
   "fulltext": {
       "by_title": {
           "index": "function(doc) { if (doc.doc_type == 'content' &&
doc.title) { var ret=new Document(); ret.add(doc.title); return ret; } }"
       }
   },
   "language": "javascript"
}


when i browse to http://127.0.0.1:5985/ i get this response:
{"couchdb-lucene":"Welcome","version":"0.6.0"}

when i browse to
http://127.0.0.1:5986/my-db-name/_fti/_design/search/by_title?q=how i get
this response:
{"error":"not_found","reason":"no_db_file"}

the logs i see for couchdb are: [info] [<0.103.0>] 127.0.0.1 - - 'GET'
/p_cb/_fti/_design/search/by_title?q=how 404

i don't see any logs for couchdb-lucene.

I am probably missing a tiny thing, but can't find it. i am not mis spelling
the db name, that's for sure.

thanks for your help,



-- 
doron

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message