[Zope] Searching a Catalog in Zope 2.6.1b1

Peter Bengtsson mail@peterbe.com
Mon, 13 Jan 2003 13:35:39 +0000


At 23:17 2003-01-09 +0100, Dieter Maurer wrote:
>Peter Bengtsson wrote at 2003-1-8 01:26 +0000:
>  > I have started testing my product in Zope 2.6.1b1 and notice an odd 
> behaviour
>  >
>  > My code looks something like this:
>  >
>  > catalog = self.ICatalog # an instance of ZCatalog called ICatalog I have
>  >
>  > results1 = catalog()
>  > print results1 # returns 25 as expected
>  >
>  > results2 = catalog({'email':'peter'})
>  >
>  > # ...in Zope 2.5.0
>  > print len(results2)  # returns 2 as expected
>  >
>  > # ...in Zope 2.6.1b1
>  > print len(results2)  # returns 25, i.e. as if the 'email' index is 
> ignored!!!
>Are you sure, "email" is still an index?
>It seems as it were no longer recognized as index.

Yes I'm sure it's an index. I have several TextIndex indices in the Catalog 
and they all seem to have indexed something.


>Dieter
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )