lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Salem <ch...@mainsequence.net>
Subject FWD: Re: parser question
Date Fri, 08 Sep 2006 14:57:01 GMT
any help with this?



Chris Salem
440.946.5214 x5458
chris@mainsequence.net 

----- Forwarded Message ----- 
To: Mark Miller <markrmiller@gmail.com>
From: Chris Salem <chris@mainsequence.net>
Sent: Wed 9/6/2006 3:58:49 PM
Subject: Re: parser question


its an index of 10 fields and about 10,000 records.



Chris Salem
440.946.5214 x5458
chris@mainsequence.net 

----- Original Message ----- 
To: Chris Salem <chris@mainsequence.net>
From: Mark Miller <markrmiller@gmail.com>
Sent: Wed 9/6/2006 2:32:24 PM
Subject: Re: parser question


What are you using as a test index?

- Mark

Chris Salem wrote:
> yes its ANDing them. Doing the query 'software engineer', 'software 
> OR engineer', 'software AND engineer' all return the same results. 
> the generated queries for them respectively are '(field:software 
> field:engineer)', '(field:software field:engineer)' and 
> '(+field:software +field:engineer)'. I do set the default operator to 
> AND and i'm using the MultiFieldQueryParser if that makes a difference 
> (it was doing the same thing with the QueryParser as well).
>
>
> Chris Salem
> 440.946.5214 x5458
> chris@mainsequence.net <mailto:chris@mainsequence.net>
> 
>
> ----- Original Message -----
> *To:* java-user@lucene.apache.org
> *From:* Mark Miller <markrmiller@gmail.com
> <mailto:markrmiller@gmail.com>>
> *Sent:* Wed 9/6/2006 12:57:44 PM
> *Subject:* Re: parser question
>
> 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
>

(The following links were included with this email:)
mailto:chris@mainsequence.net

mailto:chris@mainsequence.net

mailto:chris@mainsequence.net

mailto:markrmiller@gmail.com



(The following links were included with this email:)
mailto:chris@mainsequence.net

mailto:chris@mainsequence.net

mailto:chris@mainsequence.net

mailto:markrmiller@gmail.com



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