[Zope3-dev] Error quering the catalog with a TextIndex and a "KeywordIndex"

Sasha Vincic sasha.vincic at gmail.com
Thu Feb 16 06:49:09 EST 2006


I have made my own i keyword index, it works fine when only querying it
but if I query an other index in the same query I get an error.

MyKeywordIndex.apply() returns what
zope.index.keyword.KeywordIndex.search() returns

this is the values that cause the error:
[(3, BTrees._IFBTree.IFBucket([(1, 0.15151515603065491), (8,
0.15151515603065491),
(12, 0.15151515603065491)])), (4, IISet([1, 6, 8, 12]))]

Traceback:
     ...
        result = catalog.apply( query )
      File "/Applications/Zope-3.2.0/lib/python/zope/app/catalog/catalog.py",
line 100, in apply
        _, result = weightedIntersection(result, r)
    TypeError: invalid argument


More information about the Zope3-dev mailing list