RE: [Zope] Advanced search in ZCatalog
Usually, I use an external method returning a string containing the text from all the fields I want to search on, and I index THAT field in the Catalog. It works great! Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations * (514) 840-3000 poste 3939 * (514) 840-5585 * menard.jean-francois@hydro.qc.ca * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 -----Message d'origine----- De : daniel dias [mailto:diask8@yahoo.com.br] Envoyé : lundi 13 novembre 2000 12:51 À : ZopeList Objet : [Zope] Advanced search in ZCatalog Hi! I´m trying to discover how to make a ZCatalog perform queries on several "fields" (as in the property sheets) of the cataloged objects, but with no sucess. I´d like to execute queries using a "or" chain of tokens, to be applied on several fields of the cataloged objects, given that each field has a priority in the search results. Any ideas on how to implement this? I´ve tried several approaches with absolutely no sucess, and I´m pretty stuck, so any help will be welcome. Thanks, Daniel Dias ________________________________________________________________________ Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br _______________________________________________ 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 )
Hi ! Menard.Jean-Francois@hydro.qc.ca wrote:
Usually, I use an external method returning a string containing the text from all the fields I want to search on, and I index THAT field in the Catalog. It works great!
Isn't that what PrincipiaSearchSource is used for ? BTW: I know that PrincipiaSearchSource can be an external method, but maybe someone knows whether it could also be a DTML Method ? Regards, Maik Röder
PrincipiaSearchSource is a method that returns the (for example) text of you object. If you have a class that is being catalogued, as it catalogs it calls each index (be it a method or a property). So you can fiddle with your indexes by fiddling with your methods, such as PrincipiaSearchSource. -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Maik Röder" <roeder@berg.net> To: <Menard.Jean-Francois@hydro.qc.ca> Cc: <diask8@yahoo.com.br>; <zope@zope.org> Sent: Monday, November 13, 2000 11:39 AM Subject: Re: [Zope] Advanced search in ZCatalog
Hi !
Menard.Jean-Francois@hydro.qc.ca wrote:
Usually, I use an external method returning a string containing the text from all the fields I want to search on, and I index THAT field in the Catalog. It works great!
Isn't that what PrincipiaSearchSource is used for ?
BTW: I know that PrincipiaSearchSource can be an external method, but maybe someone knows whether it could also be a DTML Method ?
Regards,
Maik Röder
_______________________________________________ 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 )
participants (3)
-
Andy McKay -
Maik Röder -
Menard.Jean-Francois@hydro.qc.ca