This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » eZ Find » Avoid ez find index users
expandshrink

Avoid ez find index users

Avoid ez find index users

Thursday 09 August 2012 1:15:00 pm - 1 reply

Actually ez find (solr) index all users of website and have a lot of users, I want to index only some nodes from the tree if is possible.

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

It's there a way to specify what can be indexed by Solr + Ez Find?

Friday 10 August 2012 10:39:13 am

You can use the IndexExclude Settings from ezfind.ini to exclude certain classes.

[IndexExclude]
#exclude certain objects from indexing alltogether
#only classes supported for now
 
ClassIdentifierList[]
ClassIdentifierList[]=folder
ClassIdentifierList[]=user

As far as i know, it's not possible to index a certain tree only.

Also keep in mind, all you've excluded from the search index, can't be found via the admin interfaces build in search. So i think it's usually the best choice to index all objects and then using filters later - while searching - as they are needed.

You can do this for example with a SearchFilter Setting (ezfind.ini) for your frontend siteaccess:

[SearchFilters]
#Search filters to be applied for every query made
#Expert settings!
#Currently support for one filter type, a raw Solr query stringRawFilterList[]
#Example to exclude certain classes
RawFilterList[]=meta_class_identifier_s:[* TO *] -meta_class_identifier_s:(folder user)

Or by setting up the corresponding parameter (e.g. class_id) while using the search fetch function.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from