Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45B0A408C for ; Sat, 9 Jul 2011 15:06:42 +0000 (UTC) Received: (qmail 22031 invoked by uid 500); 9 Jul 2011 15:06:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21935 invoked by uid 500); 9 Jul 2011 15:06:39 -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 21927 invoked by uid 99); 9 Jul 2011 15:06:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jul 2011 15:06:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jul 2011 15:06:31 +0000 Received: by iyh42 with SMTP id 42so4882044iyh.11 for ; Sat, 09 Jul 2011 08:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Xj61HfyC6wd+FCP6azbjvnD0xCNyjQPUY7pXzENHlDs=; b=R+QDstle+kEtrqxMHAYmQSfryoSSRpbNvcbxH1MzP7MtMfQ97stJe7sxhwMHEc109d gxBvgHf7fKKKypdryrYMR156EdgltKYZcOK/Aqb2fi1he7Kz1HVW0lzxWmO9tVBICm9H jQ4OKy6HUUm9V1zRIYCT7L2WKze+PL2WHMjhA= MIME-Version: 1.0 Received: by 10.231.84.3 with SMTP id h3mr2767381ibl.109.1310223970710; Sat, 09 Jul 2011 08:06:10 -0700 (PDT) Received: by 10.231.145.67 with HTTP; Sat, 9 Jul 2011 08:06:10 -0700 (PDT) In-Reply-To: References: Date: Sat, 9 Jul 2011 16:06:10 +0100 Message-ID: Subject: Re: Help using couchdb-lucene 0.6.0 From: Robert Newson 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 couchdb-lucene should be writing a log in the logs/ subfolder of wherever you unpacked the zip or tar to. I've not tried switching to an alternative port since the first time those options were added to the hook script, but it did work at the time. B. On 8 July 2011 18:18, Doron Rotem wrote: > 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 usi= ng: > brew install couchdb-lucene > > > i configured both /usr/local/etc/couchdb/default.ini and > /usr/local/etc/couchdb/local.ini: > > [couchdb] > os_process_timeout=3D60000 ; increase the timeout from 5 seconds. > > [external] > fti=3D/Users/doron/.virtualenvs/py24/bin/python > /usr/local/Cellar/couchdb-lucene/0.6.0/tools/couchdb-external-hook.py > --remote-host=3Dhttp://127.0.0.1 --remote-port=3D5986 > > [httpd_db_handlers] > _fti =3D {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=3Dinfo) 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: > > { > =A0 "_id": "_design/search", > =A0 "_rev": "6-ffa3f1a09f6f12f92ce3766c5ebe64f6", > =A0 "fulltext": { > =A0 =A0 =A0 "by_title": { > =A0 =A0 =A0 =A0 =A0 "index": "function(doc) { if (doc.doc_type =3D=3D 'co= ntent' && > doc.title) { var ret=3Dnew Document(); ret.add(doc.title); return ret; } = }" > =A0 =A0 =A0 } > =A0 }, > =A0 "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=3Dhow i g= et > 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=3Dhow 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 spell= ing > the db name, that's for sure. > > thanks for your help, > > > > -- > doron >