[Zope-dev] ZCatalog index error

Christopher Petrilli petrilli@digicool.com
Tue, 7 Nov 2000 10:27:25 -0500


How are you getting things indexed and reindexed in the Catalog, if I might
ask?

Chris
----- Original Message -----
From: "Andy McKay" <andym@activestate.com>
To: "Chris McDonough" <chrism@digicool.com>; <zope-dev@zope.org>
Sent: Monday, November 06, 2000 6:42 PM
Subject: Re: [Zope-dev] ZCatalog index error


> Thanks, will look forward to 2.2.3!
>
> I deleted an index and metadata, re created them and recatalogued the
> affected objects. That seem to solve it in my initial tests... keeping my
> fingers crossed.
>
> --
>   Andy McKay, Developer.
>   ActiveState.
>
> ----- Original Message -----
> From: "Chris McDonough" <chrism@digicool.com>
> To: "Andy McKay" <andym@activestate.com>; <zope-dev@zope.org>
> Sent: Monday, November 06, 2000 3:49 PM
> Subject: Re: [Zope-dev] ZCatalog index error
>
>
> > Andy,
> >
> > This is a known issue with the catalog (searching the collector for "key
> > error" will show you how common it has been).  Chris Petrilli should be
> > checking in some changes to the CVS 2.2 branch (and the trunk?) tomorrow
> > that resolves it.  The problem is evidently related to the way
> > catalog.index_object() and catalog.unindex_object() do their thing.  I'd
> > advise you live with the issue until 2.2.3 comes out (which should be
> > sometime this week, AFAIK).
> >
> > ----- Original Message -----
> > From: "Andy McKay" <andym@activestate.com>
> > To: <zope-dev@zope.org>
> > Sent: Monday, November 06, 2000 4:17 PM
> > Subject: [Zope-dev] ZCatalog index error
> >
> >
> > > Im running into an odd bug with ZCatalog:
> > >
> > > I have am running a catalog query and Im getting this message.
> > >
> > >   File D:\zope\lib\python\Products\ZCatalog\Lazy.py, line 193, in
> > > __getitem__
> > >   File D:\zope\lib\python\Products\ZCatalog\Catalog.py, line 197, in
> > > __getitem__
> > > KeyError:
> > > 52536
> > >
> > > This is the line where it seems to be setting all the scores to one,
and
> I
> > > guess it can find the item 52536.
> > >
> > >         else:
> > >             # otherwise no score, set all scores to 1
> > >
> > r=self._v_result_class(self.data[index]).__of__(self.aq_parent)
> > >             r.data_record_id_ = index
> > >             r.data_record_score_ = 1
> > >             r.data_record_normalized_score_ = 1
> > >
> > > The thing is my catalog is only 17,000 records in size, I have no item
> > 52536
> > > (no wonder it cant find it). I guess my best plan would be somehow to
> > remove
> > > that the record for that item if I could... hmm...
> > >
> > > Any other ideas?
> > >
> > > --
> > >   Andy McKay, Developer.
> > >   ActiveState.
> > >
> > >
> > > _______________________________________________
> > > Zope-Dev maillist  -  Zope-Dev@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > **  No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope )
> > >
> > >
> >
> >
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>
>