couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Gable <zi...@ignition-project.com>
Subject Re: how to make sure couchdb-lucene is working ?
Date Mon, 24 Jan 2011 15:28:43 GMT
IIRC, it's _design/ObjectName/_fti.

On Mon, Jan 24, 2011 at 9:10 AM, Aditya Agustyana
<aditya.jamop@gmail.com> wrote:
> hi All
>
> i've installed couchdb 1.0.1 via CouchDBX on OSX Leopard then installed
> couchdb-lucene 0.6.0 and added configuration below
>
> [couchdb]
> os_process_timeout=60000 ; increase the timeout from 5 seconds.
>
> [external]
> fti=/usr/bin/python
> /couch/couchdb-lucene-0.6.0/tools/couchdb-external-hook.py
>
> [httpd_db_handlers]
> _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
>
> then execute ./bin/run and gave me output like this
>
> 2011-01-24 21:41:21,828 INFO [Main] Index output goes to:
> /couch/couchdb-lucene-0.6.0/indexes
> 2011-01-24 21:41:21,860 INFO [Main] Accepting connections with
> SelectChannelConnector@localhost:5985
> Jan 24, 2011 9:41:21 PM org.mortbay.log.Slf4jLog info
> INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog
> Jan 24, 2011 9:41:22 PM org.mortbay.log.Slf4jLog info
> INFO: jetty-6.1.20
> Jan 24, 2011 9:41:22 PM org.mortbay.log.Slf4jLog info
> INFO: Started SelectChannelConnector@localhost:5985
>
> i didn't see any errors so i assumed couchdb-lucene is worked
>
> and then i created project_app database and add data to it
>
> {
>   "_id": "12ecdb20c189895ca50579a3550010af",
>   "_rev": "1-2491abee5588e2b9cc1bb82907eda5f8",
>   "name": "ms ultimate",
>   "created_at": "2011/01/24 20:30:08",
>   "updated_at": "2011/01/24 20:30:08",
>   "doc_type": "Project",
>   "client_id": "Microsoft",
>   "description": "ultimate software"
> }
>
> and then i create index function and add it to futon
>
> {
>    "_id":"_design/foo",
>    "fulltext": {
>        "by_name": {
>            "index":"function(doc) { var ret=new Document(); ret.add(
> doc.name); return ret }"
>        },
>        "by_description": {
>            "index":"function(doc) { var ret=new Document();
> ret.add(doc.description); return ret }"
>        }
>    }
> }
>
>
>
> however when i tried to access
> http://localhost:5984/project_app/_fti/_design/foo/by_name?q=ultimate via
> browser, it gave me response like this
>
> {"error":"not_found","reason":"missing"}
>
> even i accessed  http://localhost:5984/project_app/_fti, it gave me same
> error
>
> i also tried to ls couchdb-lucene/indexes directory and found nothing
>
> i'm not sure what the problem, seems couchdb won't connect to couchdb-lucene
> at all, so what should i do to solve this ?, any help would be appreciated
>
> regards
>
>
> Aditya
>
> --
> profile : http://about.me/aditya.agustyana
> ym / twitter : kirconboy
> skype : adit_skype
>
> Be Nice. Treat others with the same respect you'd want them to treat you.
> We're all here to learn together.  Be tolerant of others who may not know
> everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com)
>



-- 
Keith Gable
A+ Certified Professional
Network+ Certified Professional
Web Developer

Mime
View raw message