Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3285 invoked from network); 13 Feb 2010 16:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 16:48:53 -0000 Received: (qmail 22341 invoked by uid 500); 13 Feb 2010 16:48:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22265 invoked by uid 500); 13 Feb 2010 16:48:51 -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 22255 invoked by uid 99); 13 Feb 2010 16:48:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 16:48:51 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of srikrishnamohan@gmail.com designates 209.85.222.182 as permitted sender) Received: from [209.85.222.182] (HELO mail-pz0-f182.google.com) (209.85.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 16:48:45 +0000 Received: by pzk12 with SMTP id 12so4177969pzk.13 for ; Sat, 13 Feb 2010 08:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Vk/DYCw93kAlUMz3UmPUjNU5MyuD5nHV+mH4waES8KY=; b=b+yHzDOdDQM8l22hh7gTU1aaAddUC2ZtM+addwX0foppZ3+W9U3Yh6tn3SbEvdAMy9 QqsHWYCWk+Q919PBUIuxpJtKJyxE5JN9EcQKGAutZq1V4u+c4Sh1XowqgIVo1iVZK2Ux iS4Q8kLr3zX8WvImXU8PKywFXMdXIvGer99Gg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MY1CodJboLHMgdhy0bTGiPt9KluxwgzTgauL8To3LQFusFRGorZeQeSEpBD8C/kaj4 tMiYwaC29fYQOMmHV6dHcgq0DLP7DQbkkt/YaadgqrFdex+bBcgIn2hEDsMzoUxqWBZw iQwtRouUiK+PFaw1JHRFKjKgxbWsCUd2a1Rks= MIME-Version: 1.0 Received: by 10.141.187.42 with SMTP id o42mr1985474rvp.51.1266079705274; Sat, 13 Feb 2010 08:48:25 -0800 (PST) Date: Sun, 14 Feb 2010 01:48:25 +0900 Message-ID: Subject: couchdb-lucene fulltextsearch From: km To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd1769a173917047f7e2766 --000e0cd1769a173917047f7e2766 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am working with couchdb v0.10.0 + couchdb-lucene v0.4 I have a design document (from the docs) for a couchdb database with fulltext search indexes { "_id":"_design/lucene", "_rev":" some rev id ... ", "fulltext":{ "by_name":{ "index":"function(doc){var rec = new Document(); rec.add(doc.name); return rec;}" } } } now using this, i query curl http://localhost:5984/mydb/_fti/lucene/by_name?q='john' so far so good and I retrive one record like this {"q":"john","etag":"126bc75d913","view_sig":"ffe984900a27786e627594907565e3aa","skip":0,"limit":25,"total_rows":1,"search_duration":0,"fetch_duration":0,"rows":[{"id":"0a08997ba60937ce49ed6b9b4eb11369","score":8.580954551696777}]} But how do I retrieve some of keys and their values from the documents matched ? Ofcourse I can attach an "include_docs=true" to the query param, But that returns entire document to the client which is not desired - (big documents) . do I need to have a map function for this ? and where should i place it ? pls enlighten. thanks Krishna ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --000e0cd1769a173917047f7e2766--