From java-user-return-32919-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Sun Mar 02 18:41:22 2008 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 28263 invoked from network); 2 Mar 2008 18:41:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2008 18:41:22 -0000 Received: (qmail 77845 invoked by uid 500); 2 Mar 2008 18:41:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77212 invoked by uid 500); 2 Mar 2008 18:41:10 -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 77201 invoked by uid 99); 2 Mar 2008 18:41:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 10:41:10 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ghinwa@csail.mit.edu designates 128.30.2.149 as permitted sender) Received: from [128.30.2.149] (HELO outgoing.csail.mit.edu) (128.30.2.149) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 18:40:23 +0000 Received: from c-65-96-166-47.hsd1.ma.comcast.net ([65.96.166.47] helo=IBM3D2E684396F) by outgoing.csail.mit.edu with esmtpa (Exim 4.63) (envelope-from ) id 1JVt75-0003up-Du for java-user@lucene.apache.org; Sun, 02 Mar 2008 13:40:43 -0500 Message-ID: <07f901c87c94$e9eb11c0$0602a8c0@IBM3D2E684396F> From: "Ghinwa Choueiter" To: References: <060101c87be0$20135dd0$0602a8c0@IBM3D2E684396F> <359a92830803020536o16688752h6a55f83859a75ae4@mail.gmail.com> Subject: Re: searching for "Nothing" Date: Sun, 2 Mar 2008 13:40:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org thank you. You were right. Indexing by "" does not do what I need. How would one represent a null index? Perhaps another way of asking the question is what query would return to me all the documents in the database (all-pass filter). thank you for your patience! -Ghinwa ----- Original Message ----- From: "Erick Erickson" To: Sent: Sunday, March 02, 2008 8:36 AM Subject: Re: searching for "Nothing" > The best and most deterministic way to answer this kind of question is > to download Luke and look at the explained query. That'll show you > exactly what the effect of different analyzers and the exact structure > of the resulting query. > > Offhand, I don't think your rewrite will work. > > Best > Erick > > On Sat, Mar 1, 2008 at 4:06 PM, Ghinwa Choueiter > wrote: > >> Hi, >> >> I am trying to do a search as follows (this is a very simplified >> example): >> >> I want to search for: (1) the little boy or (2) one little boy or (3) >> little boy >> >> Can I write the query as: >> "the OR one OR "" " AND "little" AND "boy" >> >> note that what I mean by "" is "Nothing". >> >> thank you, >> -Ghinwa >> >> PS. I know that I can write the query as "the little boy" OR "one little >> boy" OR "little boy" >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org