lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Mallabone <>
Subject Re: Boolean Queries
Date Fri, 05 Apr 2002 10:34:50 GMT
On Fri, 2002-04-05 at 10:50, Melissa Mifsud wrote:
> I've been experimenting with boolean queries to find out their real meaning.
> After some experiments, it seems that the Query returned by the QueryParser 
> given a String of query terms, is really a query that will return 
> documents with ANY of the query terms. Can anyone tell me for sure?

Yes, that's right. You can tweak the query parser code if you want to
only return documents containing all terms.

MOD_REQ or CONJ_AND are the relevant constants in QueryParser.jj.

I think I just set the default value returned by Conjunction() to

Hope that helps,

Lee Mallabone.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message