[Zope] Novice Question: Text search of DTML Documents and Met
hods?
Michel Pelletier
michel@digicool.com
Thu, 29 Jul 1999 16:49:26 -0400
> -----Original Message-----
> From: Joseph Santaniello [mailto:someone@arbitrary.org]
> Sent: Thursday, July 29, 1999 4:22 PM
> To: zope@zope.org
> Subject: [Zope] Novice Question: Text search of DTML Documents and
> Methods?
>
>
> Hi Everyone,
>
> I've just started working with Zope, and it seems I've had a
> bit of bad
> timing with the moving of the documentation and stuff on the new
> web-site; I'm having trouble finding stuff. So my apologies if the
> answers I'm looking for are right under my nose somewhere. ;-)
>
> Is there some documented way of searching the contents of Zope Folders
> and Documents? And if so, can one search within properties as
> well? And
> if not, where would be the best place to start for implementing this?
>
Zope 2.0b has a notion of ZCatalog. A ZCatalog is an object that can
store text and field indexes of Zope objects. You can, for example, ask
a Catalog to text index the contents of all your DTML Documents, or to
field index all the objects with the property 'favorite_color'. Then
you can create search forms to call the catalog and get a list of
objects which match your search criteria.
It's really far more powerful than that, but that should get your
started.
-Michel
> Many thanks,
>
> Joe
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>