What is your Query.toString(<defaultField>) for post QueryParser and post added BooleanQuery.
--Peter On 6/3/02 11:38 AM, "Robert A. Decker" <[EMAIL PROTECTED]> 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
