lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: parser question
Date Wed, 06 Sep 2006 16:57:44 GMT
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
> chris@mainsequence.net 
>
> ----- Original Message ----- 
> To: java-user@lucene.apache.org
> From: Mark Miller <markrmiller@gmail.com>
> 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
>> chris@mainsequence.net 
>>
>> (The following links were included with this email:)
>> mailto:chris@mainsequence.net
>>
>>
>>
>> (The following links were included with this email:)
>> mailto:chris@mainsequence.net
>>
>>
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
> (The following links were included with this email:)
> mailto:chris@mainsequence.net
>
> mailto:markrmiller@gmail.com
>
>
>
> (The following links were included with this email:)
> mailto:chris@mainsequence.net
>
> mailto:markrmiller@gmail.com
>
>
>
>   

---------------------------------------------------------------------
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