Alfresco reindex not working?

cancel
Showing results for 
Search instead for 
Did you mean: 
sistemi
Active Member II

Alfresco reindex not working?

Hi everybody, I am trying to perform a full reindex in my Alfresco community 6.1.2 - 201901 with Alfresco search services 1.3.0.1 following these steps : https://docs.alfresco.com/search-enterprise/tasks/solr-reindex.html . So I created a script that sends these commands:

export SOLR_BASE=/opt/solr
export SOLR_HOME=$SOLR_BASE/solrhome

/opt/Solr.sh stop

rm -rf $SOLR_HOME/archive/index
rm -rf $SOLR_HOME/alfresco/index
rm -rf $SOLR_HOME/alfrescoModels
rm -rf $SOLR_BASE/contentstore

/opt/Solr.sh start

/opt/Solr.sh is a script that starts Solr with this command: /opt/solr/solr/bin/solr start -force -m 2G

Unfortunately in solr.log I do not see a line containing:

WARNING: [archive] Solr index directory '<SOLR_HOME>/solrhome/archive/index' doesn't exist. Creating new index...

like https://docs.alfresco.com/search-enterprise/tasks/solr-reindex.html says, I see only these lines:

2020-05-08 10:05:40.022 INFO (main) [ ] o.e.j.s.Server jetty-9.3.14.v20161028
2020-05-08 10:05:40.602 INFO (main) [ ] o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solr™ version 6.6.5
2020-05-08 10:05:40.602 INFO (main) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port 8983
2020-05-08 10:05:40.602 INFO (main) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: /opt/solr/solr
2020-05-08 10:05:40.612 INFO (main) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2020-05-08T10:05:40.604289Z
2020-05-08 10:05:41.657 INFO (main) [ ] o.e.j.s.Server Started @2323ms
2020-05-08 10:05:41.686 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/solr/solrhome/archive'
2020-05-08 10:05:41.702 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/solr/solrhome/alfresco'
2020-05-08 10:05:42.640 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
2020-05-08 10:05:42.644 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2020-05-08 10:05:43.864 WARN (coreLoadExecutor-6-thread-2) [ x:archive] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
2020-05-08 10:05:43.866 WARN (coreLoadExecutor-6-thread-1) [ x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.

Is it ok? Or am I missing something? There are also many warnings that I do not fully understand...do you have any clue?

4 Replies
angelborroy
Alfresco Employee

Re: Alfresco reindex not working?

You need to start SOLR adding the option to re-create the cores.

Something similar to the following line:

/opt/solr/solr/bin/solr start -force -m 2G -a "-Dcreate.alfresco.defaults=alfresco,archive"

 

Hyland Developer Evangelist
sistemi
Active Member II

Re: Alfresco reindex not working?

Hi, I added the parameter you suggested to the start script, but reindex is still not working. After deleting Solr data folders and restarting Solr I get only these two new lines (the ones in bold):

2020-05-09 11:43:02.725 INFO  (main) [   ] o.e.j.s.Server jetty-9.3.14.v20161028
2020-05-09 11:43:03.262 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome to Apache Solr™ version 6.6.5
2020-05-09 11:43:03.263 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port 8983
2020-05-09 11:43:03.263 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install dir: /opt/solr/solr
2020-05-09 11:43:03.276 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start time: 2020-05-09T11:43:03.264586Z
2020-05-09 11:43:04.162 INFO  (main) [   ] o.e.j.s.Server Started @2103ms
2020-05-09 11:43:04.193 WARN  (coreLoadExecutor-6-thread-1) [   x:alfresco] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/solr/solrhome/alfresco'
2020-05-09 11:43:04.200 WARN  (coreLoadExecutor-6-thread-2) [   x:archive] o.a.s.c.Config XML parse warning in "solrres:/solrconfig.xml", line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href='solrconfig_insight.xml'). Reason: Can't find resource 'solrconfig_insight.xml' in classpath or '/opt/solr/solrhome/archive'
2020-05-09 11:43:05.086 WARN  (coreLoadExecutor-6-thread-1) [   x:alfresco] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
2020-05-09 11:43:05.094 WARN  (coreLoadExecutor-6-thread-2) [   x:archive] o.a.s.c.SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2020-05-09 11:43:06.328 WARN  (coreLoadExecutor-6-thread-2) [   x:archive] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
2020-05-09 11:43:06.332 WARN  (coreLoadExecutor-6-thread-1) [   x:alfresco] o.a.s.h.c.AlfrescoSolrClusteringComponent No default engine for document clustering.
2020-05-09 11:43:13.972 WARN  (Thread-12) [   ] o.a.s.AlfrescoCoreAdminHandler alfresco already exists, not creating again.
2020-05-09 11:43:14.105 WARN  (Thread-12) [   ] o.a.s.AlfrescoCoreAdminHandler archive already exists, not creating again.

It looks like that some data are already existing in Solr, do I have to delete more folders than the 4 that I reported in the first post?

sistemi
Active Member II

Re: Alfresco reindex not working?

Sorry, I did not reply to your answer but I added another answer...please take a look at my previous post, adding those parameters to

/opt/solr/solr/bin/solr start

did not change  indexing behaviour.

rginhoux
Member II

Re: Alfresco reindex not working?

Hi, I am geting is similar issue with Alfresco Community 6.2. Any idea to solve this issue?