as expected.
Thanks!
Luke
- Original Message -
From: "Todd VanderVeen" <[EMAIL PROTECTED]>
To: "Lucene Users List"
Sent: Monday, February 21, 2005 6:26 PM
Subject: Re: Optional Terms in a single query
Luke Shannon wrote:
The API I'm working with co
oleanQuery();
finalQuery.add(query1, false, true);
finalQuery.add(query2, true, false);
finalQuery.add(query3, true, false);
Cheers,
Todd VanderVeen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 +oldfaith:stillHere))
+(type: 181) +((-name: tim OR bill OR harry +oldfaith:stillHere))
+(type: 181) +((-name
might consider rewriting it to (a and c)
or (b and c) using DeMorgan's law. Expansion like this isn't always
beneficial and can't be applied blindly. As far as I can tell there is
no query planning/optimization aside from the merging of related clauses
and attempts to rewrite
structure?
Thanks,
Todd VanderVeen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]