[Zope-dev] ZCTextIndex bug?

Chris Withers chris at simplistix.co.uk
Tue May 16 01:59:50 EDT 2006


I know it's an old Zope version, but it doesn't look like the code's 
changed in this area since then...

Should it be possible for the following to happen?

   File "C:\Zope\2.7.6\lib\python\Products\ZCatalog\ZCatalog.py", line 
558, in uncatalog_object
     self._catalog.uncatalogObject(uid)
   File "C:\Zope\2.7.6\lib\python\Products\ZCatalog\Catalog.py", line 
411, in uncatalogObject
     x.unindex_object(rid)
   File "C:\Zope\2.7.6\lib\python\Products\ZCTextIndex\ZCTextIndex.py", 
line 181, in unindex_object
     self.index.unindex_doc(docid)
   File "C:\Zope\2.7.6\lib\python\Products\ZCTextIndex\OkapiIndex.py", 
line 68, in unindex_doc
     BaseIndex.unindex_doc(self, docid)
   File "C:\Zope\2.7.6\lib\python\Products\ZCTextIndex\BaseIndex.py", 
line 176, in unindex_doc
     self._del_wordinfo(wid, docid)
   File "C:\Zope\2.7.6\lib\python\Products\ZCTextIndex\BaseIndex.py", 
line 304, in _del_wordinfo
     del doc2score[docid]
KeyError: 1833646546

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list