Excluding some classes

Author Message

Catherine Mollet @work

Tuesday 13 October 2009 8:48:24 am

Hello,
This is a 100% newbie question. eZ Find is installed on the site, but doing a search returns banners, images and lot of stuff I don't want to appear. To exclude it, I guessed there's some setting in a ini file, then I had a look on extension > ezfind and I found a file named ezfind.ini.append.php where [IndexExclude] seemed to match what I wanted. Then I created in my own extension, under the settings folder, a ezfind.ini.append.php file where I put

[IndexExclude]
ClassIdentifierList[]
ClassIdentifierList[]=folder
ClassIdentifierList[]=banner
ClassIdentifierList[]=flash
ClassIdentifierList[]=image

Cache clearing and ... nothing changed, still have images and so on in search results. Where do I mistaking ? Thanks for any help.

Paul Borgermans

Sunday 18 October 2009 10:34:26 am

Hi Catherine,

you need to re-index with the ez find provided script and the --clean option.

You can also suppress classes at query time with hardcoded filters in ezfind.ini, try:

RawFilterList[]='meta_class_identifier_string:[* TO *] -meta_class_identifier_string:(folder banner flash image)'

hth

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Catherine Mollet @work

Wednesday 21 October 2009 9:38:43 am

Thanks a lot, Paul. Actually, search is not working any more on my local computer. I will try it as soon as I find a way to get it back...

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 04:56:32
Script start
Timing: Jan 18 2025 04:56:32
Module start 'layout'
Timing: Jan 18 2025 04:56:32
Module start 'content'
Timing: Jan 18 2025 04:56:33
Module end 'content'
Timing: Jan 18 2025 04:56:33
Script end

Main resources:

Total runtime1.2801 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.0625152.6250
Module start 'layout' 0.00830.0042 741.687539.4453
Module start 'content' 0.01251.2662 781.1328536.5938
Module end 'content' 1.27870.0013 1,317.726612.1641
Script end 1.2800  1,329.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2576160.0002
Check MTime0.00140.1082160.0001
Mysql Total
Database connection0.00150.119710.0015
Mysqli_queries1.224095.6219590.0207
Looping result0.00060.0465570.0000
Template Total1.234396.420.6171
Template load0.00290.227720.0015
Template processing1.231496.194820.6157
Template load and register function0.00030.023610.0003
states
state_id_array0.00120.092010.0012
state_identifier_array0.00160.122320.0008
Override
Cache load0.00230.1764160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.055520.0004
Fetch class attribute name0.00220.172840.0006
XML
Image XML parsing0.00100.079320.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00140.1069170.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs