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. -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 )