On Mon, Nov 15, 2010 at 12:42 AM, Viswa S <svis...@hotmail.com> wrote: > > Apologies for starting a new thread again, my mailing list subscription > didn't finalize till later than Yonik's response. > > Using "Field1:Val1 AND (*:* NOT Field2:Val2)" works, thanks. > > Does my original query "Field1:Value1 AND (NOT Field2:Val2)" fall into "need > the *:* trick if all of the clauses of a boolean query are negative" case?
Yes - the parens create a new boolean query, and all of it's clauses are negative. The top level boolean query has that as a required clause, hence it won't match anything because that sub-query won't match anything. But, your original example without the parens should have worked. -Yonik http://www.lucidimagination.com