Forums / Developer / Exclude elements in search

Exclude elements in search

Author Message

Jonathan Clavier

Tuesday 17 May 2011 2:04:28 am

Hello,
I use the extension ezfind, and in the configuration file site.ini I added the settings to not index:

[IndexExclude]
ClassIdentifierList[]=menu_0
ClassIdentifierList[]=template_look

But when I did a search, I have the title of class template_look and elements of the Media folder, then I do not want to have.

I have done this:

php extension/ezfind/bin/php/updatesearchindexsolr.php -s site_admin
 php extension/ezfind/bin/php/updatesearchindexsolr.php

How to fix this problem?

Paul Borgermans

Wednesday 18 May 2011 11:52:38 am

Hello Jonathan

use the option --clear (or even --clear-all if there are no other sites using the same index)

This will reset the index before indexing

Cheers

Paul

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