[Zope] Query Keyword Index unexpected behavior

Dieter Maurer dieter at handshake.de
Sat Mar 19 13:42:58 EST 2005


Vital Lobachevsky wrote at 2005-3-18 20:09 +0200:
> ...
>I'm trying to query a Keyword Index using record attributes. The expression
>
>   ZCatalog(myindex={'query':['foo','bar'], 'operator':'and'})
>
>should return objects that have both "foo" AND "bar". In my case, no objects 
>with "bar", but with "foo" a lot. The expr above returns ALL objects with 
>"foo". Is it expected behavior?

A really long standing bug...

You might use a "Managable KeywordIndex" as a replacement
for the broken stock Zope KeywordIndex.

  <http://www.dieter.handshake.de/pyprojects/zope>


-- 
Dieter


More information about the Zope mailing list