Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 49339 invoked from network); 4 Feb 2005 00:01:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Feb 2005 00:01:10 -0000 Received: (qmail 41810 invoked by uid 500); 4 Feb 2005 00:01:07 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 41776 invoked by uid 500); 4 Feb 2005 00:01:07 -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 41763 invoked by uid 99); 4 Feb 2005 00:01:07 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 87.52.220-216.q9.net (HELO mail.futurebrandexp.com) (216.220.52.87) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Feb 2005 16:01:06 -0800 Received: from p001002 ([204.225.84.27]) by mail.futurebrandexp.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 3 Feb 2005 19:05:31 -0500 Message-ID: <020e01c50a4d$3da7e4e0$7703d00a@hypermedia.com> From: "Luke Shannon" To: "Lucene Users List" References: Subject: Re: Parsing The Query: Every document that doesn't have a field containing x Date: Thu, 3 Feb 2005 19:05:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-OriginalArrivalTime: 04 Feb 2005 00:05:31.0515 (UTC) FILETIME=[3DC72CB0:01C50A4D] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bingo! Nice catch. That was it. Made everything lower case when I set the field. Works great now. Thanks! Luke ----- Original Message ----- From: "Kauler, Leto S" To: "Lucene Users List" Sent: Thursday, February 03, 2005 6:48 PM Subject: RE: Parsing The Query: Every document that doesn't have a field containing x Because you are build from QueryParser rather than a TermQuery, all search terms in the query are being lowercased by StandardAnalyzer. So your query of "olFaithFull:stillhere" requires that there is an exact index term of "stillhere" in that field. It depends on how you built the index (index and stored fields are different), but I would check on that. Also maybe try out TermQuery and see if that does anything for you. > -----Original Message----- > From: Luke Shannon [mailto:lshannon@futurebrand.com] > Sent: Friday, 4 February 2005 10:47 AM > To: Lucene Users List > Subject: Re: Parsing The Query: Every document that doesn't > have a field containing x > > > "stillHere" > > Capital H. > > ----- Original Message ----- > From: "Kauler, Leto S" > To: "Lucene Users List" > Sent: Thursday, February 03, 2005 6:40 PM > Subject: RE: Parsing The Query: Every document that doesn't > have a field containing x > > > First thing that jumps out is case-sensitivity. Does your > olFaithFull field contain "stillHere" or "stillhere"? > > --Leto > > > > -----Original Message----- > > From: Luke Shannon [mailto:lshannon@futurebrand.com] > > This works: > > > > query1 = QueryParser.parse("jpg", "kcfileupload", new > > StandardAnalyzer()); query2 = QueryParser.parse("stillHere", > > "olFaithFull", new StandardAnalyzer()); BooleanQuery > > typeNegativeSearch = new BooleanQuery(); > > typeNegativeSearch.add(query1, false, false); > > typeNegativeSearch.add(query2, false, false); > > > > It returns 9 results. And in string form is: kcfileupload:jpg > > olFaithFull:stillhere > > > > But this: > > > > query1 = QueryParser.parse("jpg", "kcfileupload", new > > StandardAnalyzer()); > > query2 = QueryParser.parse("stillHere", > "olFaithFull", new > > StandardAnalyzer()); > > BooleanQuery typeNegativeSearch = new BooleanQuery(); > > typeNegativeSearch.add(query1, true, false); > > typeNegativeSearch.add(query2, true, false); > > > > Reutrns 0 results and is in string form : +kcfileupload:jpg > > +olFaithFull:stillhere > > > > If I do the query kcfileupload:jpg in Luke I get 9 docs, each doc > > containing a olFaithFull:stillHere. Why would > > +kcfileupload:jpg +olFaithFull:stillhere return no results? > > > > Thanks, > > > > Luke CONFIDENTIALITY NOTICE AND DISCLAIMER Information in this transmission is intended only for the person(s) to whom it is addressed and may contain privileged and/or confidential information. If you are not the intended recipient, any disclosure, copying or dissemination of the information is unauthorised and you should delete/destroy all copies and notify the sender. No liability is accepted for any unauthorised use of the information contained in this transmission. This disclaimer has been automatically added. --------------------------------------------------------------------- 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