Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 62785 invoked from network); 4 Jun 2010 21:35:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 21:35:07 -0000 Received: (qmail 36283 invoked by uid 500); 4 Jun 2010 21:35:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36251 invoked by uid 500); 4 Jun 2010 21:35:06 -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 36234 invoked by uid 99); 4 Jun 2010 21:35:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 21:35:06 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-ww0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 21:34:58 +0000 Received: by wwb31 with SMTP id 31so1748290wwb.11 for ; Fri, 04 Jun 2010 14:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ICkqRBCktDydWg7ZYi6nk7fQHqLIJfqpRqFfZwDv88Q=; b=uCYARWnUeSrquneO3I/DvZlyu99DVDu1OqAnRmld9RMWZEyNjhIzx+RplyYtSOmiVq XluK0symYMwr0gp7ITB26w6ptj6z2BKs0iScSPmGZ3sbR3PXCUTR7zmSyTr/quIo82XI aD11oOu981WnPIT3b5pPGFKC5QMznuGsrowcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DvKTbSAqswOa9H1VVFWhjCtQNOk5xiZPciYjd43j8Osh/Tuqti+VA99BTPDPK4dm0I rczYs+Fp+kYOjYJyQ1LNEbaZUJFv2E2fJjMYZ99u0X02A33ruXnnicus95f/fj5pAue8 mBGCT1mJdohE2Q/+VaCKHsN5IrYspgwjaGCSQ= MIME-Version: 1.0 Received: by 10.216.86.140 with SMTP id w12mr98925wee.95.1275687275582; Fri, 04 Jun 2010 14:34:35 -0700 (PDT) Received: by 10.216.27.201 with HTTP; Fri, 4 Jun 2010 14:34:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jun 2010 22:34:35 +0100 Message-ID: Subject: Re: clucene and couchdb From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The reason couchdb-lucene requires you to write a javascript function is that there is no single mapping from a couchdb document to a Lucene Document that suits everyone. B. On Fri, Jun 4, 2010 at 10:31 PM, Norman Barker wrote: > Hi, > > I am writing a clucene indexer for CouchDB, I have > update_notifications and _fti as a db handler working. I am using > stdout/stdin for the communication and it is looking good. > > Looking at http://wiki.apache.org/couchdb/Full_text_search I see that > the index property in the design document is a javascript function and > I am wondering why? For views I can understand why you would want to > do an evaluation but for Lucene could we just use a JSON Path > reference? > > Thoughts appreciated, since I am in C++ and SpiderMonkey is available > I could do an eval of the javascript, but it might be easier just to > parse the JSON path. > > We will be putting this CLucene implementation in the public domain > once I have cleared the necessary internal paperwork. > > CLucene is dual license (Apache and LGPL) and I am using Cajun (BSD) > for the JSON parsing so should I host this separately or take out a > JIRA ticket to have it included in CouchDB? > > thanks, > > Norman >