Hello everyone. Today I will be talking you through how to fix the search function for Alfresco 4.0d. Out of the box, Alfresco's search function runs on solr. However, solr doesn’t work properly on Alfresco 4.0d so when you try to search a document Alfresco will come back with no results. To fix this you will need to switch from solr to Lucene which will require a bit of script altering. To do this, follow these steps:
### Solr indexing ###
index.subsystem.name=solr
dir.keystore=/keystore
solr.port.ssl=8444
You will need the edit some of this to setup Lucene. You'll need to replace solr with lucene in the line index.subsystem.name=solr, hash tag out the lines dir.keystore=$(dir.root)/keystroke and solr.port.ssl=8444. You will also need to add in index.recovery.mode=FULL. This will re-build the index so that lucene will work. This is what you'll need to change it to:
### Solr/lucene indexing ###
index.subsystem.name=lucene
index.recovery.mode=FULL
#dir.keystore=/keystore
#solr.port.ssl=8443
Once that is done, save the file and start up alfresco so that the index can be re-built.
index.recovery.mode=AUTO
Once that is done you need to delete the following folders and files:
Once those folders and file have been deleted you can start up Alfresco again with Lucene in place of solr. The search function should now work.
Thank you for reading.
IQ in IT is a cloud service provider based in Kingston Upon Thames. We offer a complete solution of cloud services including phones, virtual desktops and servers to our clients.