Return-Path: X-Original-To: apmail-lucy-user-archive@www.apache.org Delivered-To: apmail-lucy-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 E8E68C0A2 for ; Wed, 20 Jun 2012 14:17:34 +0000 (UTC) Received: (qmail 74502 invoked by uid 500); 20 Jun 2012 14:17:34 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 74445 invoked by uid 500); 20 Jun 2012 14:17:34 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 74435 invoked by uid 99); 20 Jun 2012 14:17:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 14:17:34 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FSL_RCVD_USER,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [192.203.201.122] (HELO barracuda01.mpr.org) (192.203.201.122) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 14:17:29 +0000 X-ASG-Debug-ID: 1340201827-0223c517376c4560001-00ifYr Received: from HQMAIL07.mpr.org (hqesnode01.mpr.org [10.2.2.100]) by barracuda01.mpr.org with ESMTP id qPCSYJ5W4KVL2bPr for ; Wed, 20 Jun 2012 09:17:07 -0500 (CDT) X-Barracuda-Envelope-From: peter@peknet.com X-ASG-Whitelist: Client Received: from mail.mpr.org ([10.2.2.87]) by HQMAIL07.mpr.org with Microsoft SMTPSVC(6.0.3790.4675); Wed, 20 Jun 2012 09:17:07 -0500 Received: from pkarmanosx.mpr.org ([10.4.8.71]) by mail.mpr.org with Microsoft SMTPSVC(6.0.3790.4675); Wed, 20 Jun 2012 09:17:07 -0500 Message-ID: <4FE1DB63.8050801@peknet.com> Date: Wed, 20 Jun 2012 09:17:07 -0500 From: Peter Karman Reply-To: peter@peknet.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: user@lucy.apache.org References: X-ASG-Orig-Subj: Re: [lucy-user] Unable to retrieve records using Proximity query In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Jun 2012 14:17:07.0445 (UTC) FILETIME=[5FC41A50:01CD4EEF] X-Barracuda-Connect: hqesnode01.mpr.org[10.2.2.100] X-Barracuda-Start-Time: 1340201827 X-Barracuda-URL: http://barracuda.mpr.org:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at mpr.org X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-user] Unable to retrieve records using Proximity query On 6/19/12 2:05 PM, Saurabh Vasekar wrote: [ snipped searching code ] > Although my documents contain contents which have text 'jakarta' and > 'apache' I am not getting any results. The interesting thing is that is I > specify the following in my proximity query the search returns appropriate > results. > > my $proximity_query = LucyX::Search::ProximityQuery->new( > field => 'content', > terms => [ qw ( in the ) ], > within => 4, > ); > > Is my implementation correct? > your search code looks reasonable. I would suggest a fully self-contained example, including example docs and indexing code, to really demonstrate the problem. Since we can't see what's in your index, it's difficult to help determine if this is a problem in your code or in Lucy. -- Peter Karman . http://peknet.com/ . peter@peknet.com