Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 9590 invoked from network); 6 Sep 2006 12:30:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2006 12:30:32 -0000 Received: (qmail 5142 invoked by uid 500); 6 Sep 2006 12:30:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 5106 invoked by uid 500); 6 Sep 2006 12:30:22 -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 5095 invoked by uid 99); 6 Sep 2006 12:30:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 05:30:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 05:30:21 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 25B4330EFCD3; Wed, 6 Sep 2006 08:30:00 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on javelina X-Spam-Level: Received: from [128.143.193.79] (d-128-193-79.bootp.Virginia.EDU [128.143.193.79]) by ehatchersolutions.com (Postfix) with ESMTP id 6308D30EFCD3 for ; Wed, 6 Sep 2006 08:29:58 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <6167885.post@talk.nabble.com> References: <6167885.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: How does PhraseQuery search for quoted phrases? Date: Wed, 6 Sep 2006 08:29:54 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sep 6, 2006, at 5:37 AM, Venkateshprasanna wrote: > How does PhraseQuery search for quoted phrases when the index does > not store > these phrases as it is? > > Is there any analyzer that indexes the phrases? The analyzer is responsible for some additional data about terms, specifically in this case a position increment. All built-in analyzers use a position increment of 1 for each term, meaning that each term is in a successive position than the previous one. PhraseQuery looks for all terms in the phrase in successive positions (or within a certain slop factor distance from one another). Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org