Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 21264 invoked from network); 21 Feb 2002 16:45:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Feb 2002 16:45:28 -0000 Received: (qmail 10670 invoked by uid 97); 21 Feb 2002 16:45:21 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 10645 invoked by uid 97); 21 Feb 2002 16:45:20 -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 10629 invoked from network); 21 Feb 2002 16:45:19 -0000 Message-ID: From: Aruna Raghavan To: 'Lucene Users List' Subject: Boolean AND query Date: Thu, 21 Feb 2002 10:43:36 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, Has anyone run into problems with boolean AND query? Basically, I am using the following code to do the query to look for 10060 AND 10040 BooleanQuery bq = new BooleanQuery(); Analyzer analyzer = new StandardAnalyzer(); Query query = QueryParser.parse(m_strKeyword, "pageText", analyzer); bq.add(query, true, false); In this case, I am just using one query to add to bq but there can be more. I am getting correct results when 10060 AND 10040 exists in the document. But when one of them does not exist, I am still getting the same results. In other words, AND seems to be acting like an OR. I noticed this in the latest RC4 as well as an older lucene build from before lucene joined jakarta. Thanks! -- To unsubscribe, e-mail: For additional commands, e-mail: