lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Switching default parsing for Or and AND
Date Tue, 03 Jan 2006 13:18:23 GMT

If you construct an instance of QueryParser you can set the default  
operator (see the javadocs).  Important: be sure to construct an  
instance and use the *instance* parse method rather than the  
static .parse method!


On Jan 3, 2006, at 6:48 AM, Mike Streeton wrote:

> Is there a way of altering the way lucene parses a default string  
> to use
> AND instead of OR, e.g. usually "joe bloggs" is executed as "joe OR
> bloggs", is there a flag to change this to "joe AND bloggs" which  
> seems
> to be the way most search engines work.
> Thanks
> Mike

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

View raw message