[Zope] - Search engine inside zope database

FR Chalaoux chalaouxf@synbio.tpgnet.net
Tue, 26 Jan 1999 09:12:14 +0100


Hi All

Thanks Simon, this helps me :)

I also tried to use the manage_findFrame method on any folder 
from my site, but if it is the solution, roles and the knownledge of 
the differents parameters for this method should be known?

I can believe that zope can't offer a standard tool given a powerfull 
search engine to the client like this when the shiti FrontPage 
Micro$oft give it.

FR


> chalaouxf@synbio.tpgnet.net (FR Chalaoux) writes:
> 
> > How is it possible to search inside a zope database all the 
> > document objet containing a string occcurance (see regular 
> > expression) and construct the result in a document with an 
> > hypertexte link for each answer?
> 
> I posted some code which does this.. see msgid
> <wk90ex6wuf.fsf@joyful.com> (or search for "PrincipiaFind") in the
> list archive.
> 
> It searches for File objects containing a given string in the id or
> title, and modified within the last N days. To use it you could:
> 
> 1. save it in a .py file in zope/Extensions and then create an External
> Object named "Find" in your zbase
> 
> 2. create a search form which gathers obj_searchterm, obj_days &
> search_sub then goes to a results page
> 
> 3. in your results page use dtml something like this:
> 
> <!--#with "_.namespace(results=Find(this(),        
> 	obj_searchterm=obj_searchterm, 
>         obj_days=obj_days, 
>         search_sub=search_sub, 
>         REQUEST=REQUEST))"-->
> <!--#in results-->
> <a href="<!--#var sequence-key -->">
> <img src="<!--#var SCRIPT_NAME-->/<!--#var icon -->" border=0>
> <!--#var sequence-key--></a>
> <!--#/in-->
> <!--#/with-->
> 
> Hope this helps,
> -Simon




François-Régis Chalaoux
Bioinformatics Group
Synthélabo Biomoléculaire
67080 Strasbourg Cedex
FRANCE
Tél : 03 88 60 87 14
Fax : 03 88 45 90 70