[Zope-dev] KeywordIndex errors

seb bacon seb@jamkit.com
Thu, 28 Nov 2002 10:22:33 +0000


 >> 2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not
 >> remove documentId -869933785 from index companies.  This should not
 >> happen.
 >>
 >> exceptions.KeyError: -869933785

 > This usually happens when there are duplicates in the indexed 
keywords > and the record isn't updated before unindexing. Shouldn't 
cause any
 > problems, though it isn't nice. This can be easily fixed by changing
 > the KeywordIndex' index_object method to make keywords unique before
 > indexing.

Hmm, recall that PathIndex error I reported a few days ago?  That was 
also an unindex error, also exercised by migrating to 2.6.0.

I wonder why the process of *migrating* should cause dups in the index...?

seb

>>Hi, started seeing quite a few of these showing up in one of our server's
> 
> logs:
> 
>>------
>>2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not
> 
> remove
> 
>>documentId -869933785 from index companies.  This should not happen.
>>
>>exceptions.KeyError: -869933785
>>
>>This is Zope 2.6.0, hence the total lack of traceback :-(
>>
>>Anyone got any idea what's going on here?
>>
>>cheers,
>>
>>Chris
>