cancel
Showing results for 
Search instead for 
Did you mean: 

Index Control (cm:indexControl) behavior

pluttero
Champ in-the-making
Champ in-the-making

Hello,

my setup consists of Alfresco Community 5.2

I have a folder, with a deep hierarchy which I would like to exclude completely from solr indexing.

Reading the documentation I found out that I should use Index Control (cm:indexControl) aspect.

I tried to apply it to the root folder, hoping that new content added (as child) to that folder wouldn't have been indexed, but it was.

In order to avoid indexing of a document, I must apply this aspect to it directly, thus Index Control (cm:indexControl) doesn't seem to work on children.

If this is correct, is there another solution to exclude a portion of my SpacesStore from SOLR (both content and meta)?

thanks

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

IndexControl aspect is not hierarchical. You need to apply that aspect to every node you want to exclude from the SOLR Index.

Hyland Developer Evangelist

pluttero
Champ in-the-making
Champ in-the-making

Hi,

thanks for your help. So, applying IndexContorl to every node is the only solution in order to exclude some portions of my workspace from indexing?

If I decide to completely abandon solr (I need it just for some marginal cmis queries we could rewrite in order to work with database), can we just switch it off?

Thanks