[Zope-dev] KeywordIndex errors

Myroslav Opyr myroslav@zope.net.ua
Thu, 28 Nov 2002 20:22:24 +0200


seb bacon wrote:

>
> >> 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=20
> keywords > and the record isn't updated before unindexing. Shouldn't=20
> 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=20
> also an unindex error, also exercised by migrating to 2.6.0.
>
> I wonder why the process of *migrating* should cause dups in the=20
> index...?=20

The errors were reported when I was deleting object created in Zope=20
2.6.0 already, but that instance of Plone probably migrated 2.5 -> 2.6.=20
We are migrating Plone, not Zope right now...

m.
--=20
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> =B0 Ukrainian Zope Hosting
e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>