Forums / Extensions / eZ Find / Excluding some classes
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
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...