Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 15872 invoked from network); 24 Jan 2011 15:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 15:29:17 -0000 Received: (qmail 98434 invoked by uid 500); 24 Jan 2011 15:29:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 98155 invoked by uid 500); 24 Jan 2011 15:29:12 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 98146 invoked by uid 99); 24 Jan 2011 15:29:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 15:29:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ziggythehamster@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 15:29:04 +0000 Received: by yxd30 with SMTP id 30so1020688yxd.11 for ; Mon, 24 Jan 2011 07:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3ftjXbCi6cETR+Zw3wtzkK9Hj/GVcdsib+frID6o2Zo=; b=tVMg2Qr7SH4ehX2OiMpkFhdpw3QuyXuBS5PoM+AGtwj2UzDZe8LSt1yZnsOOz5kGts dffYE7Hs7AH20emOMehqyL+Bmn42oySOw+NlZJOmKAPy5P2tB6k2F5tt7lIpZQEZIGJ3 TUAAfEOKiVciWgPQKKBmvFi4Smiccn9C8tQEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=W+B5fT9WFZPzhZ3M60Q36iQsujwnSJ6JSx+vLK8sFmnrKyjDZlDsR4FSqM2QU37A0I EkEWyF/4DpVMEluLtkcXN6Hd7b94O3J+qdkloyp1KEPdFpXFN/VH1qkQq1p68mLquuLO dhosciZFJlyZGs3vBjuf2c2iwQgM7VXtIO8GE= MIME-Version: 1.0 Received: by 10.42.226.196 with SMTP id ix4mr4947629icb.192.1295882923727; Mon, 24 Jan 2011 07:28:43 -0800 (PST) Sender: ziggythehamster@gmail.com Received: by 10.42.179.10 with HTTP; Mon, 24 Jan 2011 07:28:43 -0800 (PST) In-Reply-To: References: Date: Mon, 24 Jan 2011 09:28:43 -0600 X-Google-Sender-Auth: U87ZYdxEMrsN0_GF4Bh8PRuvgvo Message-ID: Subject: Re: how to make sure couchdb-lucene is working ? From: Keith Gable To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org IIRC, it's _design/ObjectName/_fti. On Mon, Jan 24, 2011 at 9:10 AM, Aditya Agustyana 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=3D60000 ; increase the timeout from 5 seconds. > > [external] > fti=3D/usr/bin/python > /couch/couchdb-lucene-0.6.0/tools/couchdb-external-hook.py > > [httpd_db_handlers] > _fti =3D {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 > > { > =A0 "_id": "12ecdb20c189895ca50579a3550010af", > =A0 "_rev": "1-2491abee5588e2b9cc1bb82907eda5f8", > =A0 "name": "ms ultimate", > =A0 "created_at": "2011/01/24 20:30:08", > =A0 "updated_at": "2011/01/24 20:30:08", > =A0 "doc_type": "Project", > =A0 "client_id": "Microsoft", > =A0 "description": "ultimate software" > } > > and then i create index function and add it to futon > > { > =A0 =A0"_id":"_design/foo", > =A0 =A0"fulltext": { > =A0 =A0 =A0 =A0"by_name": { > =A0 =A0 =A0 =A0 =A0 =A0"index":"function(doc) { var ret=3Dnew Document();= ret.add( > doc.name); return ret }" > =A0 =A0 =A0 =A0}, > =A0 =A0 =A0 =A0"by_description": { > =A0 =A0 =A0 =A0 =A0 =A0"index":"function(doc) { var ret=3Dnew Document(); > ret.add(doc.description); return ret }" > =A0 =A0 =A0 =A0} > =A0 =A0} > } > > > > however when i tried to access > http://localhost:5984/project_app/_fti/_design/foo/by_name?q=3Dultimate v= ia > browser, it gave me response like this > > {"error":"not_found","reason":"missing"} > > even i accessed =A0http://localhost:5984/project_app/_fti, it gave me sam= e > 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-luc= ene > at all, so what should i do to solve this ?, any help would be appreciate= d > > 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. =A0Be tolerant of others who may not kn= ow > everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com) > --=20 Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer