You are here

Migrating from Lucene to Solr search

This section describes how to migrate from Alfresco Enterprise 3.x with Lucene search server to Alfresco Enterprise 4.x with Solr search server.

With Alfresco Enterprise 3.x, the default search engine was Lucene. When you upgrade to Alfresco Enterprise 4.x using the setup wizard, the default search engine is Solr. However, if you upgrade using the WAR file, the default search engine is Lucene.

To determine the current search server, navigate to the Search Manager page at Alfresco Share Admin Console > Tools > Search > Search Manager. Click the Edit button to change between the Solr and Lucene search subsystem.

Use the steps below to migrate from Alfresco Enterprise 3.x with Lucene search server to Alfresco Enterprise 4.x with Solr search server.

  1. Upgrade to Alfresco Enterprise 4.x and continue to use Lucene search server as before.
  2. Install and configure Solr to track the repository. For details, see the Installing and Configuring Solr topic.
  3. Monitor progress using the SUMMARY report.

    http://localhost:8080/solr/admin/cores?action=SUMMARY&wt=xml 

    For details, see the Unindexed Solr Transactions topic.

  4. When the index is updated as reported by the SUMMARY report, you can use the REPORT option and check the following:
  5. When the Solr index is updated, enable the Solr subsystem and disable the Lucene subsystem.
  6. Validate the query results.

    You can switch back to the Lucene search server at any time but there may be a pause while the index is being updated. Also, note that Lucene should be set to auto.