Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 36372 invoked from network); 7 May 2009 17:14:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 17:14:32 -0000 Received: (qmail 53904 invoked by uid 500); 7 May 2009 17:14:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 53856 invoked by uid 500); 7 May 2009 17:14:29 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 53846 invoked by uid 99); 7 May 2009 17:14:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 17:14:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.219.179 as permitted sender) Received: from [209.85.219.179] (HELO mail-ew0-f179.google.com) (209.85.219.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 17:14:19 +0000 Received: by ewy27 with SMTP id 27so1379558ewy.5 for ; Thu, 07 May 2009 10:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=gtOnRdYQJbEjFXPoswhYU4iLh1qeQ2FBt26t2MkC+yw=; b=SzapwvhDRrCGR8rOvxng0fBVe4cdiD6WCikg6xlkIyXfOKSVvxUZe66Iqp1ADgEiwB wmReA07/EsFWQRlEsUTHv2PZXlIQb48EFBLcfYzLZ/agu8FDOylSCvfBrXWu2ifSYPus Zv83KvMBjomaiTY7/RyT3RhsYwOHXxEVROw0A= 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=QpKDPtkbph1IXUMOHwFhWmhHYuws5zL98492snhG4aBDco1NDCSJ+mhADAjFsjVXDP vwFSETxX6QIlr28Qujo3bkWDGtC+DcoMJNYXuIUI6CQt9Tw2/e3cl8NhWjf1EyIp9dXy pKf7r9GZljlFxE/xG8GlIt6NW6pzudng+kSiU= MIME-Version: 1.0 Received: by 10.220.95.14 with SMTP id b14mr5859777vcn.35.1241716436997; Thu, 07 May 2009 10:13:56 -0700 (PDT) In-Reply-To: <179b305e0905070814u43c8336ia1008bac09183b61@mail.gmail.com> References: <179b305e0905070814u43c8336ia1008bac09183b61@mail.gmail.com> Date: Thu, 7 May 2009 13:13:56 -0400 Message-ID: <359a92830905071013y12d92f2an8dc3a1b7800f6697@mail.gmail.com> Subject: Re: why setPhraseSlop() not helping From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e64ea81e2399cb046955a344 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64ea81e2399cb046955a344 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You haven't forced the double quotes through to the parser. Try Query query = qp.parse("\"word1 word2\""); On Thu, May 7, 2009 at 11:14 AM, Seid Mohammed wrote: > I have set the slop for my search to be some terms away for inclusion. > unfortunately, the result is the same indpendent of my setPhraseSlop(int) > usage. > code excerpts: > ================================== > QueryParser qp = new QueryParser("content", new AmharicAnalyzer()); > qp.setPhraseSlop(3); > Query query = qp.parse("word1 word2"); > =================================== > It has no impact on the result at all > > thanks a lot > seid M. > > -- > "RABI ZIDNI ILMA" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --0016e64ea81e2399cb046955a344--