RE: Switching default parsing for Or and AND

2006-01-03 Thread Steven Pannell
-user@lucene.apache.org Subject: Switching default parsing for Or and AND 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&q

Re: Switching default parsing for Or and AND

2006-01-03 Thread Erik Hatcher
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

Switching default parsing for Or and AND

2006-01-03 Thread Mike Streeton
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