Are you sure it is anding them?

field:software field:engineer

indicates an OR operation.

+field:software +field:engineer

indicates an AND operation.

- Mark





Chris Salem wrote:
i set the default operator to AND, but if i have a query with an OR in it it 
doesn't work, for example, if i have the query 'software OR engineer' the 
parser interprets it as 'field:software field:engineer' and AND's them.  how 
would i fix this?


Chris Salem
440.946.5214 x5458
[EMAIL PROTECTED] ----- Original Message ----- To: java-user@lucene.apache.org
From: Mark Miller <[EMAIL PROTECTED]>
Sent: Tue 9/5/2006 5:38:50 PM
Subject: Re: parser question


QueryParser.setDefaultOperator(Operator op)

Chris Salem wrote:
With all the parsers I have tried a space in a query, such as doing a search for 
"sales manager", interprets the space as an OR, is there a way to change it so 
that it interprets a space as an AND?


Chris Salem
440.946.5214 x5458
[EMAIL PROTECTED]
(The following links were included with this email:)
mailto:[EMAIL PROTECTED]



(The following links were included with this email:)
mailto:[EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

(The following links were included with this email:)
mailto:[EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]



(The following links were included with this email:)
mailto:[EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to