Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 46594 invoked from network); 17 Apr 2003 18:45:11 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 17 Apr 2003 18:45:11 -0000 Received: (qmail 27590 invoked by uid 97); 17 Apr 2003 18:47:09 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 27583 invoked from network); 17 Apr 2003 18:47:09 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 17 Apr 2003 18:47:09 -0000 Received: (qmail 46298 invoked by uid 500); 17 Apr 2003 18:45:09 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 46276 invoked from network); 17 Apr 2003 18:45:08 -0000 Received: from fulldegree.com (192.220.91.253) by daedalus.apache.org with SMTP; 17 Apr 2003 18:45:08 -0000 Received: from fddell8000 (adsl-64-169-189-2.dsl.snfc21.pacbell.net [64.169.189.2]) by fulldegree.com (8.12.9) id h3HIjDRA094455 for ; Thu, 17 Apr 2003 12:45:13 -0600 (MDT) From: "Lixin Meng" To: "Lucene Users List" Subject: RE: usage of prohibit operator '-' Date: Thu, 17 Apr 2003 11:39:52 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3E9EF3D9.10908@etapestry.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks. That helps. Lixin -----Original Message----- From: Scott Ganyo [mailto:scott.ganyo@etapestry.com] Sent: Thursday, April 17, 2003 11:35 AM To: Lucene Users List Subject: Re: usage of prohibit operator '-' Lucene only searches for positive results, not negative. If you think of the "-" operator as a subtraction, then you'll understand that Lucene requires that you also select something to subtract from. Scott Lixin Meng wrote: >I am having some problems with the probhibit operator '-'. If anyone can >shed some light on it, I certainly appreciate it. > >In the index, I have a field with field name 'ID'. It tried query like: > > ID:(+ID10) >or > ID:(+"ID10") > >It will returns some hits. > >However, if I try > > ID:(-ID10) >or > ID:(-"ID10") > >I got an empty result set, which should have some records. > >Any idea how to use this prohibit operator? > >Regards, >Lixin > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > -- "They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org