cancel
Showing results for 
Search instead for 
Did you mean: 

solr configuration tips to slow down index

MrNico
Star Contributor
Star Contributor

Hello, I need you to help me with some questions about solr in the community alfresco version 4.2.0.

1) I have millions of documents to reindex, what file should I edit to configure this reindex to be slower? It doesn't matter that it takes days to reindex everything.

2) How do I completely stop solr? I don't want to use any indexer like solr or lucene.

3 REPLIES 3

angelborroy
Community Manager Community Manager
Community Manager

(1) SOLR is indexing Alfresco using a cron expression that starts a loop of HTTP request to the Repository. By default, this process happens every 15 seconds:

https://github.com/Alfresco/alfresco-legacy-repo/blob/support/HF/4.2.0/projects/solr/source/solr/ins...

You may change this expression to decrease indexing rate.

(2) If you don't want to use a Search Subsystem, just use the "noidex" search subsystem in "alfresco-global.properties" file

index.subsystem.name=noindex
Hyland Developer Evangelist

Thanks, but the link you sent doesn't work = (

I think I would like to change those "15" seconds. Do you know in which file you can configure that?

You may change alfresco.cron property in solrcore.properties file (located in SOLR side):

https://github.com/Alfresco/SearchServices/blob/master/search-services/alfresco-search/src/main/reso...

Hyland Developer Evangelist