Forums / Setup & design / Multi attribute search with OR flag

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Multi attribute search with OR flag

Author Message

Stephan Brezinsky

Tuesday 06 April 2004 11:08:44 am

I have read that the OR and NOT search flags are supported, and so are multiple attribute searches, but I have yet to read about, or figure out how to get both to work together.

What I have is this:

Custom class has attribute1 values of 1,2,3. Also has attribute2 values of 4,5,6
Assume there are several class objects containing some, or all of these values.

What I would like to do is search attribute1 and attribute2 for values 1 OR 3 OR 5. This should then return a minimum of three results.

So far I have set SearchContentClassAttributeID to 1,2 in my advancedsearch.tpl. This will then search both attribute1 and attribute2, but I am only able to search for one possible value such as "5", not all three (1,3,5).