[Zope] Search ZCatalog with wildcard

Peter Bengtsson mail@peterbe.com
Mon, 22 Apr 2002 18:26:57 +0200


On Sunday 21 April 2002 22:29, Andreas Jung wrote:
> Maybe the documentation is poor at this point.
> You need to create a vocabulary with globbing support
> and create a TextIndex that uses this vocabulary. Then
> us can use the standard unix wildcard ?* for searching.

Cheers. I got it working. I had to remove the current "id" index I had there 
and create a new one.
Now it works really nice.

> -aj
> ----- Original Message -----
> From: "Andreas Jung" <andreas@andreas-jung.com>
> To: <mail@peterbe.com>; <zope@zope.org>
> Sent: Sunday, April 21, 2002 16:20
> Subject: Re: [Zope] Search ZCatalog with wildcard
>
> > http://www.zope.org/Documentation/ZopeBook/SearchingZCatalog.stx
> >
> > ----- Original Message -----
> > From: "Peter Bengtsson" <mail@peterbe.com>
> > To: <zope@zope.org>
> > Sent: Sunday, April 21, 2002 16:02
> > Subject: [Zope] Search ZCatalog with wildcard
> >
> > > I want to search my ZCatalog like I do with SQL using LIKE and %
> >
> > wildcards.
> >
> > > return context.ZCatalog({'id':'peter%%'})
> > > ...should return "peter.html", "peter.jpg", "peterblablabla" I think.
> > >
> > > However this does not work. What is the syntax to do a wildcard search
>
> on
>
> > a
> >
> > > ZCatalog??
> > >
> > >
> > > _______________________________________________
> > > 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 )
> >
> > _______________________________________________
> > 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 )
>
> _______________________________________________
> 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 )