lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: parser question
Date Wed, 06 Sep 2006 17:12:17 GMT
Also, watch your query, the OR is case-sensitive. If you lowercase the
entire string, the 'OR' gets lowercased too, in which case it's not
interpreted as an operator.

On 9/6/06, Chris Salem <chris@mainsequence.net> 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
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message