Searching for multiple, but not all, classes

Author Message

Marco Zinn

Wednesday 24 December 2003 9:31:12 am

I'd like to search for more than one, but not all readable classes.
IE: User can access folder, article, file and image classes.
(Advanced) Search should only search for folder, article and file, but not images.

Referring to http://ez.no/developer/ez_publish_3/documentation/customization/components/search/custom_search_box and http://ez.no/developer/ez_publish_3/documentation/customization/components/search/search_operator .
I think, it's not possible to limit the template search operator or the custom search to search 3 classes.
I was trying to find documentation on the PHP code (eZSearch class, i think), but I cannot find the SDK anywhere anymore.

Somebody please prove me wrong ;)

I think, for templates, one could do three seperate searches using the fetch "content, search" function, each limited to one class... but how do I merge the result array and will the array merge keep the order of the three "class search results" or will the merge mix everything up?
Did anyone successfully try this?

Marco
http://www.hyperroad-design.com

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:22:11
Script start
Timing: Jan 18 2025 19:22:11
Module start 'layout'
Timing: Jan 18 2025 19:22:11
Module start 'content'
Timing: Jan 18 2025 19:22:13
Module end 'content'
Timing: Jan 18 2025 19:22:13
Script end

Main resources:

Total runtime1.3882 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.0078 589.4766152.6406
Module start 'layout' 0.00780.0036 742.117239.4766
Module start 'content' 0.01141.3753 781.5938471.3359
Module end 'content' 1.38680.0014 1,252.92978.1250
Script end 1.3882  1,261.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2429160.0002
Check MTime0.00130.0942160.0001
Mysql Total
Database connection0.00200.141110.0020
Mysqli_queries1.342696.7153460.0292
Looping result0.00040.0281440.0000
Template Total1.345997.020.6730
Template load0.00210.153420.0011
Template processing1.343896.799220.6719
Template load and register function0.00010.007210.0001
states
state_id_array0.00100.070610.0010
state_identifier_array0.00070.049720.0003
Override
Cache load0.00170.1243130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040710.0006
Fetch class attribute name0.00050.039420.0003
XML
Image XML parsing0.00050.035910.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00090.0645160.0001
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs