[Zope-dev] ZCatalog index error

Andy McKay andym@ActiveState.com
Thu, 9 Nov 2000 11:31:03 -0800


I found this in the archive. Is this the patch I need or is it more complex,
it seems strange that it hasnt been implemented...

http://zope.nipltd.com/public/lists/dev-archive.nsf/0a8715d5f3c7b6a3802568c1
006328f7/c15eb30d0faf1057802568b8002e1273?OpenDocument

[..]

In lib/python/SearchIndex/Lexicon.py the set method of the Lexicon
class, change:

        else:
            self._lexicon[intern(word)] = self.counter
            self.counter = self.counter + 1
            return self.counter

to

        else:
            self.counter = self.counter + 1
            self._lexicon[intern(word)] = self.counter
            return self.counter

<groans from the audience>

--
  Andy McKay, Developer.
  ActiveState.
----- Original Message -----
From: "Andy McKay" <andym@ActiveState.com>
To: "Christopher Petrilli" <petrilli@digicool.com>; "Chris McDonough"
<chrism@digicool.com>; <zope-dev@zope.org>
Sent: Tuesday, November 07, 2000 12:02 PM
Subject: Re: [Zope-dev] ZCatalog index error


> Ah sorry, I have custom CatalogAware class thats been a bit hacked but was
> written by Mike Pelletier... when he was hanging around at ActiveState for
a
> few days. Theres a link to wiki on it somewhere
>
> --
>   Andy McKay, Developer.
>   ActiveState.
>
> ----- Original Message -----
> From: "Christopher Petrilli" <petrilli@digicool.com>
> To: "Andy McKay" <andym@activestate.com>; "Chris McDonough"
> <chrism@digicool.com>; <zope-dev@zope.org>
> Sent: Tuesday, November 07, 2000 10:13 AM
> Subject: Re: [Zope-dev] ZCatalog index error
>
>
> >
> > > Well im not sure how much deleting the index and then recreating the
> index
> > > throught the management interface actually does. But I wrote an
external
> > > method to basically do a find and apply to recatalog bunches of
objects.
> >
> > Actually i meant originally, not the second time.  Are you using
> > CatalogAware to get objects to automatically index themselves?  What
> exactly
> > are you doing to get them in the Catalog in the first place?
> >
> > Chris
> >
>
>
> _______________________________________________
> 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 )
>