[Zope-dev] ZCatalog/TextIndex/OR - keyword search

Arno Gross arno.gross@consotec.de
Thu, 8 Feb 2001 10:35:29 -0100


I understand that the search terms for a field with TextIndex are ORed
and the fields in a search form are ANDed.
But assume the following:
 * I have three fields (eg. abstract, content, title) with TextIndex
 * I have one field (eg. category) with FieldIndex

When searching I want just give a keyword for the three TextIndex fields
and a search term for category.
The applying expression should look like this:

(abstract=keyword OR content=keyword OR title=keyword) AND
category=searchTerm

Any hints?
Thanks 
   Arno Gross, email: arno.gross@consotec.de