[Zope] Can't make an AdvancedQuery with NOT
Willis Morse
willismorse at mac.com
Wed Feb 9 09:56:18 EST 2005
I just installed AdvancedQuery 0.6 in my Plone site, as it seems to be
the only way to do boolean search expressions.
Here's the query I'm trying to make:
query = Eq('Title','kitchen') & - Eq('Subject','deck')
The idea, obviously, is to get all docs with keywords of "kitchen" AND
NOT "deck"
I'm getting this as an error:
AttributeError: Eq instance has no attribute '__neg__'
This query works as expected:
query = Eq('Subject','kitchen') & Eq('Subject','deck')
Installation details:
Plone 2.0.5
Zope 2.7.3-0, python 2.3.4, darwin
AdvancedQuery 0.6
No IncrementalSearch
No ManagableIndex
Any ideas?
Thanks,
Willis Morse
ShiftClick, LLC
More information about the Zope
mailing list