Tuesday 8 January 2013

Upgrading Alfresco - solr not updating - solved

On upgrading solr did not index any new files

I managed easily to upgrade Alfresco in another post. All went well except for the solr system although enabled would not index any new files. All the old files we indexed and worked, but the new ones would not.

I checked the permissions - they were ok, I checked the indicies - they were ok
I checked all the references to solr they were ok.

I did a new install an everything worked fine.
I added files and they indexed immediately.
I deleted the database schema, copied in mine and then the data into alf-data.
Immediately solr didn't index.

It had to be the solr indexes which I deleted.
solr recreated these as alfesco boot and now all is ok.

This works on 4.2.b and 4.2.c
stop alfresco
sh /opt/alfresco-4.2.b/alfresco.sh stop

Delete

/opt/alfresco/alf_data/solr/workspace/SpacesStore
/opt/alfresco/alf_data/solr/archive/SpacesStore
/opt/alfresco/alf_data/solr/workspace-SpacesStore/alfrescoModels
/opt/alfresco/alf_data/solr/archive-SpacesStore/alfrescoModels

Restart Alfesco
sh /opt/alfresco-4.2.b/alfresco.sh start

No comments:

Post a Comment