Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 59200 invoked from network); 10 Aug 2010 20:07:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 20:07:16 -0000 Received: (qmail 72373 invoked by uid 500); 10 Aug 2010 20:07:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 72332 invoked by uid 500); 10 Aug 2010 20:07:14 -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 72319 invoked by uid 99); 10 Aug 2010 20:07:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 20:07:13 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.195.15.217] (HELO web111515.mail.gq1.yahoo.com) (67.195.15.217) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Aug 2010 20:07:04 +0000 Received: (qmail 44178 invoked by uid 60001); 10 Aug 2010 20:06:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1281470801; bh=LiE1CG4KQrG9/e26VJVhOaiAqRAuFYL7QxjBt5OsrzE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=c1vZoNRYnb9SscPr6fhjWV6/H6zyl38dYYhaxu92X718xGs1NbAB9Haa6FDE86R5hxgekSo5HsC3lzNKWl1Ec4+f4cgzTeaFlm/Oom09P8kX5LxV0zVB07oU1w9dlh82/VBWBQeLU1rWUSiyI2shuRn7AbaoTS+iT4nJnfP3QGM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=u+9qvGkaPg7WPRj5EPFmwShVmSXpR7ikMAesLbf4zFoYQ3gLrFiP4EMEAa60mV7REiJ2oxFd4oeRCHtZ+bWzdxzVyXdJ47IZbNlq//Fahkkhjyo7opxBlvDpIg8Z8ARebLfiQfBLkj6ufkQIvYgDJmlnh2hHt6HU96M6tQ05RiA=; Message-ID: <613680.43633.qm@web111515.mail.gq1.yahoo.com> X-YMail-OSG: 0zkgaV0VM1m8ZdYX8YHvrlrrbGlhhbF.sdz9xAh.SDpRY4z O7R4ES1P00kKS7VCbE8sRi8MV4F1Kt3birMOwLK0MnCs6X4lTOBpMswpu31h wU53jz5FVwz1sbJVGzatcPoL3jytpsaKMbLeFHrqryoeBRSyg71gEyErrpC1 InvR1UxN81ZIRbwMiDPOE5jlHRTvwmXwLOEYsHRns33VqeYfk53u.U_M5hqt mZfWBPsTnx9nOWjUi9aI8bYEWkZ03oBlXwwFYFmdkRBTTNPDZseJcF6uZ1v0 z3jAMgrnuX2Uw.s8j0G_n7_SrG15JhvxrxbgiBXrGQ3ZQtuLV1NgseWivi2U acZQbqVr4_l0sXg-- Received: from [24.114.255.3] by web111515.mail.gq1.yahoo.com via HTTP; Tue, 10 Aug 2010 13:06:41 PDT X-Mailer: YahooMailRC/459 YahooMailWebService/0.8.105.279950 References: <117033.599.qm@web111516.mail.gq1.yahoo.com> <2E7FCE0A-45A9-4EAC-BCF5-DD2ED9F9C33D@googlemail.com> <15497.68937.qm@web111508.mail.gq1.yahoo.com> Date: Tue, 10 Aug 2010 13:06:41 -0700 (PDT) From: Timothy Washington Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer problems) To: user@couchdb.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1507731320-1281470801=:43633" X-Virus-Checked: Checked by ClamAV on apache.org --0-1507731320-1281470801=:43633 Content-Type: text/plain; charset=us-ascii Oh that's interesting. I was just working off of the latest github master. I'll try one of the downloads. In the meantime, here's the results with the debug: baron@baron-dev:wget 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?debug=true&q=title:GLAM' ... baron@baron-dev:~/Baron$ cat 'by_all?debug=true&q=title:GLAM' { "q": "title:glam", "plan": "TermQuery(title:glam,boost=1.0)", "analyzer": "org.apache.lucene.analysis.standard.StandardAnalyzer", "etag": "2f07e40455e", "skip": 0, "limit": 25, "total_rows": 0, "search_duration": 0, "fetch_duration": 0, "rows": [] } Tim ________________________________ From: Robert Newson To: user@couchdb.apache.org Sent: Tue, August 10, 2010 3:47:46 PM Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer problems) can you add debug=true to the query arguments and paste the result? Note that 0.6 is not released yet, I'd encourage you to work from a release or the 0.5.x branch. B. On Tue, Aug 10, 2010 at 8:19 PM, Timothy Washington wrote: > > I don't have a specific analyzer declared, so it'll be the default one. > > Here's the design document: > { > "_id": "_design/foo", > "_rev": "4-9d0eb8eba0080e61952317efd9f55ebc", > "fulltext": { > "by_title": { > "index": "function(doc) { var ret=new Document(); ret.add(doc.title); > return ret }" > }, > "by_source": { > "index": "function(doc) { var ret=new Document(); > ret.add(doc.source); return ret }" > }, > "by_all": { > "index": "function(doc) { > var ret=new Document(); > ret.add(doc.title); > ret.add(doc.body); > ret.add(doc.source); > return ret; > }" > } > } > } > > > > Tim > > > > > ________________________________ > From: Sebastian Cohnen > To: user@couchdb.apache.org > Sent: Tue, August 10, 2010 3:05:04 PM > Subject: Re: Cannot search single terms in Couchdb-lucene (maybe Analyzer > problems) > > what analyzer are you using? can you provide the ddoc? have you tried to search > for the single term in lowercase? > > Best > > Sebastian > > On 10.08.2010, at 21:01, Timothy Washington wrote: > >> Our team is using couchdb-lucene. We have the tool installed, configured and >> indexing properly. And our full field searching works properly. >> >> >> But if we want to search for one one word in a field ('title', or 'summary', >>for >> >> example), we get no results. So, on a document with the title "WHAT DO YOU >WEAR >> >> TO GLAM UP YOUR LOOK FOR A SPECIAL EVENT?", document A) works, but B) does >not. >> >> >> >> A) wget 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?q=title:WHAT > >> DO YOU WEAR TO GLAM UP YOUR LOOK FOR A SPECIAL EVENT?' >> B) wget > 'http://172.16.114.129:5984/baron/_fti/_design/foo/by_all?q=title:GLAM' >> >> >> We're playing around with the settings - a different index analyzer maybe? But > >> I'm sure we're just missing a basic switch/lever somewhere. Anyone have any >> knowledge here? >> >> >> Thanks >> Tim >> > > --0-1507731320-1281470801=:43633--