Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 69741 invoked from network); 15 Dec 2005 13:24:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Dec 2005 13:24:47 -0000 Received: (qmail 5585 invoked by uid 500); 15 Dec 2005 13:24:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 5563 invoked by uid 500); 15 Dec 2005 13:24:39 -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 5551 invoked by uid 99); 15 Dec 2005 13:24:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2005 05:24:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of daniel.h.funk@gmail.com designates 64.233.184.195 as permitted sender) Received: from [64.233.184.195] (HELO wproxy.gmail.com) (64.233.184.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2005 05:24:38 -0800 Received: by wproxy.gmail.com with SMTP id i21so339540wra for ; Thu, 15 Dec 2005 05:24:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references; b=ErnGQdN+QvhvLRLEmQhOP/3F5VzVcZ6IwMKICNWUlDADHaOhYjLCQ1k6XCj4Xf9s8lXrR90ZOK+fCVJGL1zaHuZo+nlc7mUM8twukwc+QhVJzn+ndhqxVu8Wh3GPHz1+r2qcloHEUbk8nBbDVe/3iI8zSc5l8WLUI5+ShpLx7f4= Received: by 10.54.122.19 with SMTP id u19mr2245101wrc; Thu, 15 Dec 2005 05:24:17 -0800 (PST) Received: by 10.54.106.10 with HTTP; Thu, 15 Dec 2005 05:24:17 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 13:24:17 +0000 From: Dan Funk Sender: daniel.h.funk@gmail.com To: java-user@lucene.apache.org Subject: Re: all stop words in exact phrase get 0 hits In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4317_25650392.1134653057458" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4317_25650392.1134653057458 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline That is certainly the behaviour I would expect. The "+" means the term or phrase is required - you are requiring words that are not stored in your index. Why don't remove the "+"? Alternately you could run the search, and if no matches are found, run it again without the second argument. I've found lucene to be fairly fast at finding 0 results. On 12/15/05, javier muguruza wrote: > > Hi, > > Suppose I have a query like this: > +attachments:purpose > that returns N hits. > If I add another condition > +attachments:purpose +attachments:"hello world" > I still get some hits, but if the words in the "hello world" phrase > happen to be all stop words I get 0 hits. > > I can fix that by checking at least one of them is not a stop word, > but just wanted to know wether thats expected behaviour. > > > Im using lucene1.9rc. > thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_4317_25650392.1134653057458--