Objet : Re: [Zope] Searching in all field with ZCatalog
Hi Chris and All, No, you asked the right question, scuse me for the error !! I would like only one entry in the form to search in all indexed fields. I like this solution cause it is sometimes difficult for a no regulmar user in this aera (Protein Data Bank) to question the right field. In fact I would like create a simple form ;) FR
zope-admin@zope.org%internet 31/08/00 12:38:15 >>> Organization: New Information Paradigms X-Accept-Language: en Errors-To: zope-admin@zope.org X-Mailman-Version: 1.0b8 Precedence: bulk List-Id: Users of the Z Object Publishing Environment <zope.zope.org> X-BeenThere: zope@zope.org
Francois-Regis CHALAOUX wrote:
Hi All,
Is it possible to search in all the indexed fields of a ZCatalog with only **one** input form ?
Woudl having a field for each index on the one form do it? cheers, Chris _______________________________________________ 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 )
No, you asked the right question, scuse me for the error !! I would like only one entry in the form to search in all indexed fields. I like this solution cause it is sometimes difficult for a no regulmar user in this aera (Protein Data Bank) to question the right field. In fact I would like create a simple form ;)
You can have one field, and copy the value so that it gets searched for in all the fields when you make the catalog call. But you don't want to do that, because Catalog will AND the results from all the fields. The Advanced ZCatalog Searching HowTo shows how to OR the fields programatically. But what may work better for you would be to create a method on all of your objects that returns the concatenation of the values of all the fields of interest. Index *that* field, and search that field. --RDM
participants (2)
-
Francois-Regis CHALAOUX -
R. David Murray