Search in more than one Section

Author Message

Martin Bergmeyer

Friday 21 May 2010 12:03:19 am

Hi,

I am using eZ Publish 4.01 and eZ Find 2.0. My Problem is that I want to search in 2 sections but the section_id attribute expected only one integer number. So that mens that you can only search in one Section or if you remove this attribute the search will be in all sections. I tried the RawFilterList in the ezfind ini setting but it didn't work. I got no search results. I have to search in section 1 and 3.

I tried it like this:

RawFilterList[]=meta_section_id_si:[* TO *] -meta_section_id_si:(1 3)

Has anyone an idea how I have to use the RawFilterList or is there another possibilty to search in 2 Sections.

I am grateful for any help. Thanks

Matthieu Sévère

Friday 21 May 2010 1:32:43 am

Hi,

I would use a filter : filter, 'section_id:( 1 OR 3 )'

If I remember well RawFilterList will apply on every ezfind fetch you use thus I am not sure it's a good solution :)

Otherwise it would have been more : meta_section_id_si:( 1 OR 3 )

--
eZ certified developer: http://ez.no/certification/verify/346216

Martin Bergmeyer

Tuesday 25 May 2010 12:52:10 am

Hi,

now I am using the filter attribute and it works fine for me.

Thank you very much for your help.

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 30 2025 16:40:36
Script start
Timing: Jan 30 2025 16:40:36
Module start 'layout'
Timing: Jan 30 2025 16:40:36
Module start 'content'
Timing: Jan 30 2025 16:40:37
Module end 'content'
Timing: Jan 30 2025 16:40:37
Script end

Main resources:

Total runtime0.7667 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.2734151.2266
Module start 'layout' 0.00600.0059 739.5000220.7188
Module start 'content' 0.01190.7539 960.21884,442.0703
Module end 'content' 0.76580.0008 5,402.28917.9844
Script end 0.7667  5,410.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5246160.0003
Check MTime0.00140.1854160.0001
Mysql Total
Database connection0.00070.096410.0007
Mysqli_queries0.681088.8239590.0115
Looping result0.00060.0766570.0000
Template Total0.708492.420.3542
Template load0.00230.295820.0011
Template processing0.706192.095920.3530
Template load and register function0.00130.174810.0013
states
state_id_array0.00090.121410.0009
state_identifier_array0.00070.093020.0004
Override
Cache load0.00190.2461190.0001
Sytem overhead
Fetch class attribute can translate value0.00180.238520.0009
Fetch class attribute name0.00200.262240.0005
XML
Image XML parsing0.00250.323620.0012
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00410.5342160.0003
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs