[Zope] ZCatalog searching more than one field at once

Timothy Wilson wilson@visi.com
Fri, 19 Oct 2001 16:19:19 -0500 (CDT)


Hi everyone,

I've built a little ZClass and a ZCatalog to catalog the instances. Among
other things, this ZClass has fields called 'title' and 'description'. I've
created indexes (text indexes) for each in my Catalog.

I want to make an advanced search form that would allow someone to type some
keywords and search the Catalog. Is it possible to search for the same
keywords in two different fields? In other words, I want the user to see one
keyword search box and use their input to search two different ZCatalog
indexes. The Zope Book describes how to do this from a Python Script, but
how would I do it from a regular HTML form?

-Tim

--
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com