lucene-java-user mailing list archives

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

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!

	Erik

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message