Forums / Extensions / eZ Find / Search in more than one Section
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
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
Tuesday 25 May 2010 12:52:10 am
now I am using the filter attribute and it works fine for me.
Thank you very much for your help.