Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79856 invoked from network); 10 Jun 2010 19:37:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 19:37:23 -0000 Received: (qmail 4178 invoked by uid 500); 10 Jun 2010 19:37:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4053 invoked by uid 500); 10 Jun 2010 19:37:22 -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 4045 invoked by uid 99); 10 Jun 2010 19:37:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 19:37:22 +0000 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of norman.barker@gmail.com designates 209.85.211.179 as permitted sender) Received: from [209.85.211.179] (HELO mail-yw0-f179.google.com) (209.85.211.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 19:37:17 +0000 Received: by ywh9 with SMTP id 9so420892ywh.17 for ; Thu, 10 Jun 2010 12:36:56 -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=wskWTFJvr1KpIyqkaBr75LKXn1rC7wCWx3Aku5XMfwc=; b=P9g8IjABpeHCh910a1TybTti8c+E7S5Hp8WRBbsAlmdSv48/mCtxbNh9tuvTnmRvLA rps43FfXSe77Jlz4yGLZC2VUp5wfvHenvhSn0H9DYiVNL2rrDLNDKZg4lqdbIDiXJbKo K0ZUZz2+gsLxOo8PviYwaPwOlfBa/eoQEtSG8= 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=LJOW2Ui3k9BaE1tQg2CoxhcVZh9PUi1l1d+oU/HSEd4b/6dyGF8X/Yv5amc8gqs36l qh7+ymBZuD0BUWN7Dc0Z7FnLuqmqGyuUDpcdR4kkH+RDtyj04lbLyzlygth6vUZ48lHm 9G/gjdNd7lgYfc77m1/NdbNMNn//8xZjbWotE= MIME-Version: 1.0 Received: by 10.150.113.9 with SMTP id l9mr1975331ybc.359.1276198616339; Thu, 10 Jun 2010 12:36:56 -0700 (PDT) Received: by 10.151.39.15 with HTTP; Thu, 10 Jun 2010 12:36:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 10 Jun 2010 13:36:56 -0600 Message-ID: Subject: Re: couch lucene From: Norman Barker To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Robert, thanks, I am looking at the examples in your code. So var ret=new Document(); ret.add(parseInt(\"12.5\"), {type:\"int\", field:\"num\"}); I still don't see why you need the document object, why not just a JSON structure? 'new Document()' does cause a problem in SpiderMonkey for me when I am calling it from clucene but I will try to get it to work. Norman On Thu, Jun 10, 2010 at 12:55 PM, Robert Newson wrote: > The example on the wiki page is the most trivial example. Look at the > examples at http://github.com/rnewson/couchdb-lucene for less trivial > ones. > > The reason for a Document object is that there are many different ways > to index your date (different fields, numeric, date, tokenized, not > tokenized, stored, not stored, etc). > > B. > > On Thu, Jun 10, 2010 at 7:49 PM, Norman Barker wrote: >> Hi, >> >> why in >> >> http://wiki.apache.org/couchdb/Full_text_search >> >> does the index function create a new document and add results to it? >> >> is it equally valid just to return a string? >> >> I have nearly finished the clucene integration now, I will be posting >> some code towards the end of the week. >> >> If I have missed something with the new Document() in the index js >> function please let me know. >> >> thanks, >> >> Norman >> >