Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 65166 invoked from network); 3 Jun 2002 18:48:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Jun 2002 18:48:10 -0000 Received: (qmail 13077 invoked by uid 97); 3 Jun 2002 18:48:13 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 13047 invoked by uid 97); 3 Jun 2002 18:48:12 -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 13035 invoked by uid 98); 3 Jun 2002 18:48:12 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Errors-To: User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Mon, 03 Jun 2002 11:48:07 -0700 Subject: Re: QueryParser query inside a Boolean query? From: Peter Carlson To: Lucene Users List Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N What is your Query.toString() for post QueryParser and post added BooleanQuery. --Peter On 6/3/02 11:38 AM, "Robert A. Decker" wrote: > I'm having a problem with my queries that I don't quite understand. > > Say I create a Query object using QueryParser - this query lets the > user add wildcards, etc. > > Then, I create another Query object using, for example, a TermQuery. > > I then put both of these into a BooleanQuery and use that BooleanQuery > against the lucene index. > > What I'm finding is that my wildcards are no longer followed by > lucene. For example, if the field passed to the QueryParser was: > investig* > > Then, investig* is used in the query, but it doesn't behave as a wildcard > - it seems to actually search for phrase "investig*" > > So, what do I do to use a mix of QueryParser terms, and TermQuerys? Do I > build up my BooleanQuery and then somehow run that through the QueryParser > again? > > thanks, > rob -- To unsubscribe, e-mail: For additional commands, e-mail: