From java-user-return-39535-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Mon Apr 06 20:38:09 2009 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 12147 invoked from network); 6 Apr 2009 20:38:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2009 20:38:08 -0000 Received: (qmail 51786 invoked by uid 500); 6 Apr 2009 20:38:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 51715 invoked by uid 500); 6 Apr 2009 20:38:05 -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 51705 invoked by uid 99); 6 Apr 2009 20:38:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:38:05 +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 (athena.apache.org: domain of erickerickson@gmail.com designates 74.125.92.26 as permitted sender) Received: from [74.125.92.26] (HELO qw-out-2122.google.com) (74.125.92.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 20:37:58 +0000 Received: by qw-out-2122.google.com with SMTP id 8so1673664qwh.53 for ; Mon, 06 Apr 2009 13:37:38 -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=vLmoMduc8YGSEm7O/8DUg++YweSJDxONyqdLHqxIVcI=; b=CqXYlTL2NDtjRLXs0yCKmNXmMk3Q1XcFLU81txQUmgIW+Mqk0lpctdj3oBpztQfgtv exgt8Lj3nQ+cBNUfMEK+Fi0MdiszJcmPhr2z2klwWFsl1AAGDcN7BNFahEQK03zqXF8f GpZuZgvWBDoFTu5+TjHy5b2RnIBy59EXfUEKo= 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=n/YqOmzr8qP69Ml9RNcoqmJC1Mpg29llXag7Vuv0Aod4ghYn2jNcPqMMmatU4UoQ/2 QgqcaBuel438jcys4hLnivVZG1vYrh+17zOYpQlxEUPdTC2whunJqtLgTBjJ9Q0lXwqs rCYiGLOD7QPKGdZNft8QDLaBSsM3bC+E+rrbQ= MIME-Version: 1.0 Received: by 10.220.71.130 with SMTP id h2mr4355243vcj.118.1239050257642; Mon, 06 Apr 2009 13:37:37 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Apr 2009 16:37:36 -0400 Message-ID: <359a92830904061337qf6057d6y29f3d8e7579071f5@mail.gmail.com> Subject: Re: How to search a phrase using quotes in a query ??? From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e646033c77342a0466e8de01 X-Virus-Checked: Checked by ClamAV on apache.org --0016e646033c77342a0466e8de01 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit We really need some more data. First, I *strongly* recommend you get a copy of Luke and examine your index to see what is *actually* there. Google "lucene luke". That often answers many questions. Second, query.toString is your friend. For instance, if the query you provided below is all that you're submitting, it's going against the default field you might have specified when you instantiated your query parser. Third, what analyzers are you using at index and query time? Code snippets would also help. Best Erick On Mon, Apr 6, 2009 at 4:32 PM, Ariel wrote: > Hi every body: > > Why when I make a query with this search query : "the fool of the hill" > doesn't appear documents in the search results that contains the entire > phrase "the fool of the hill" and it does exist documents that contain that > phrase, I am using snowball analyzer for English ??? > Could you help with this please ??? > Regards > Ariel > --0016e646033c77342a0466e8de01--