Re: Changing default QueryParser operator from OR to AND

2006-02-10 Thread Erik Hatcher
On Feb 10, 2006, at 4:37 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: IF QueryParser gets a phrase with a number of words (ie: "here are words") it uses the implicit operator OR - "here OR are OR words". LIA on p94 says the operator "by default is OR", implying that there may be some

RE: Changing default QueryParser operator from OR to AND

2006-02-10 Thread Iain Willis
Hi, Instead of using the static parse() method of QueryParser, you will need to create a new instance, and the call setOperator(DEFAULT_OPERATOR_AND); Iain www.ardentia.com the home of NetSearch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 10 February 20