[Zope] Keyword index negative query

Casey Duncan casey at zope.com
Thu Apr 1 14:46:37 EST 2004


On Thu, 01 Apr 2004 17:46:05 +0100
Chris Withers <lists at simplistix.co.uk> wrote:

> (please don't post in HTML!)
> 
> FLORAC Thierry wrote:
> 
> > I'm using Zope-2.6.1 with ZCatalog and several Keyword indexes.
> > How can I make a query on a KeywordIndex to get objects for which a 
> > given value is not found ??
> 
> Not easily :-/
> 
> The underlying BTrees support this but ZCatalog's engine for combing
> them is pretty rigid. I think Casey did some work on breaking this
> apart recently, maybe he can help?

Here is a recipe I wrote for this a while back:

http://www.zopelabs.com/cookbook/1015785843/1026625784

hth,

-Casey



More information about the Zope mailing list