any help with this?
Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] ----- Forwarded Message ----- To: Mark Miller <[EMAIL PROTECTED]> From: Chris Salem <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] ----- Original Message ----- To: Chris Salem <[EMAIL PROTECTED]> From: Mark Miller <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > ----- Original Message ----- > *To:* java-user@lucene.apache.org > *From:* Mark Miller <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > *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 > > [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] > (The following links were included with this email:) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] (The following links were included with this email:) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]