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).

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:38:37
Script start
Timing: Jan 18 2025 19:38:37
Module start 'layout'
Timing: Jan 18 2025 19:38:37
Module start 'content'
Timing: Jan 18 2025 19:38:38
Module end 'content'
Timing: Jan 18 2025 19:38:38
Script end

Main resources:

Total runtime0.5279 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.1641152.6406
Module start 'layout' 0.00450.0023 741.804739.4609
Module start 'content' 0.00680.5196 781.2656400.6328
Module end 'content' 0.52640.0015 1,181.89848.1563
Script end 0.5279  1,190.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5904160.0002
Check MTime0.00130.2429160.0001
Mysql Total
Database connection0.00080.146110.0008
Mysqli_queries0.494493.6624460.0107
Looping result0.00030.0635440.0000
Template Total0.504695.620.2523
Template load0.00220.407820.0011
Template processing0.502595.183720.2512
Template load and register function0.00020.031110.0002
states
state_id_array0.00030.052810.0003
state_identifier_array0.00060.120620.0003
Override
Cache load0.00180.334490.0002
Sytem overhead
Fetch class attribute can translate value0.00050.095710.0005
Fetch class attribute name0.00060.104910.0006
XML
Image XML parsing0.00010.020310.0001
class_abstraction
Instantiating content class attribute0.00000.000910.0000
General
dbfile0.00060.1172100.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs