Sorry about the typos. What I would like is a document with a type field = 181, olfaithfull=stillHere and a name field not containing tim, bill or harry.
Thanks, Luke ----- Original Message ----- From: "Paul Elschot" <[EMAIL PROTECTED]> To: <lucene-user@jakarta.apache.org> Sent: Monday, February 21, 2005 5:31 PM Subject: Re: Optional Terms in a single query > On Monday 21 February 2005 23:23, Luke Shannon wrote: > > Hi; > > > > I'm trying to create a query that look for a field containing type:181 and > > name doesn't contain tim, bill or harry. > > type: 181 -(name: tim name:bill name:harry) > > > +(type: 181) +((-name: tim -name:bill -name:harry +oldfaith:stillHere)) > > stillHere is normally lowercased before searching. Is that ok? > > > +(type: 181) +((-name: tim OR bill OR harry +oldfaith:stillHere)) > > +(type: 181) +((-name:*(tim bill harry)* +olfaithfull:stillhere)) > > typo? olfaithfull > > > +(type:1 81) +((-name:*(tim OR bill OR harry)* +olfaithfull:stillhere)) > > typo? (type:1 81) > > > I would really think to do this all in one Query. Is this even possible? > > How would you want to combine the results? > > Regards, > Paul Elschot > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]