You can do this, for example:
QueryParser queryParser = new QueryParser(defaultField, new
StandardAnalyzer());
queryParser.setOperator(QueryParser.DEFAULT_OPERATOR_AND)
-Original Message-
From: Mike Streeton [mailto:[EMAIL PROTECTED]
Sent: 03 January 2006 12:48
To: java-user
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