Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 29984 invoked from network); 3 Mar 2005 13:43:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 13:43:54 -0000 Received: (qmail 53480 invoked by uid 500); 3 Mar 2005 13:43:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 53444 invoked by uid 500); 3 Mar 2005 13:43:48 -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 53424 invoked by uid 99); 3 Mar 2005 13:43:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 05:43:48 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id 3E9E113E2007; Thu, 3 Mar 2005 08:43:44 -0500 (EST) Received: from [128.143.167.124] (d-128-167-124.bootp.Virginia.EDU [128.143.167.124]) by ehatchersolutions.com (Postfix) with ESMTP id 2618D13E210E for ; Thu, 3 Mar 2005 08:43:29 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <019901c51fe6$8e11d680$b101a8c0@emacmillan.edu> References: <019901c51fe6$8e11d680$b101a8c0@emacmillan.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2a4869ebcdd6e9d06b6cef9f5e7b8aa1@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: problem with not operator Date: Thu, 3 Mar 2005 08:43:27 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.619.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Try using an IndexSearcher.explain on a document in the search results that you know has "b" - this will give you the gory details of why. Also, try to simplify without MultiFieldQueryParser - its got plenty of known issues - for now and see what that gives you. Erik On Mar 3, 2005, at 6:45 AM, Niraj Alok wrote: > Hi, > > When I am putting the query as 'a not b' there are some documents > coming up > which have 'b' as well. > > I am searching on 3 fields using a MultiFieldQueryParser and while > debugging > the query is also getting shown as > (field1:a -field1:b) (field2:a -field2:b) (field3:a -field3:b) > > Yet the results have documents which contain 'b' terms as well. > > While indexing, I am using StandardAnaylzer(stopwords), and the field > as: > Field fl = new Field("indexhd",indexhd, true, true, true); > > etc.. > > Please could you suggest what the problem could be? > > > > Regards, > Niraj --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org