You are here

Upgrading from Solr 4 to Solr 6 search

Use this information to upgrade from Alfresco One 5.1 with the Solr 4
 search index server to Alfresco Content Services 6.0.1
 with the Solr 6 search index server.

To determine the current search server, navigate to the Search Manager
 page at Alfresco Share Admin Console > Repository Services > Search Service. Select
 the search subsystem from the Search Service In Use list.

Follow the steps to migrate from Alfresco One 5.x with Solr 4 search service to Alfresco Content Services 6.0.1 with Solr 6 search service.

  1. Upgrades from Alfresco One 5.0 or 5.1 need to first stop at 5.2 to upgrade search to Alfresco Search Services, and then upgrade to 6.0.
  2. Upgrades from Alfresco Content Services 5.2 must first upgrade to Search Services from Solr 4, and then upgrade to 6.0
  3. Make sure you upgrade to Alfresco Search Services 1.3 before upgrading the repository to 6.0.1.
  4. Install and configure Solr 6 to track the repository. For more information, see Installing and configuring Search Services without mutual TLS.
  5. While Solr 6 builds its indexes, you can monitor progress using the SUMMARY report.


    For details, see the Unindexed Solr
 Transactions topic.

  6. Optionally, you can use the Solr Admin Web interface to view Solr configuration details, run queries, and analyze document fields.
    1. Open the FireFox Certificate Manager by selecting Firefox > Preferences... > Advanced > Certificates > View Certificates > Your Certificates.
    2. Import the browser keystore browser.p12 that is located in your <ALFRESCO_HOME>/alf_data/keystore directory.
    3. Enter the password alfresco.

      A window displays showing that the keystore has been imported successfully. The Certificate Manager now contains the imported keystore with the Alfresco repository certificate under the Your Certificates tab.

    4. Close the Certificate Manager by clicking OK.
    5. In the browser, navigate to a Solr URL.

      For example, use http://localhost:8080/solr.

      The browser displays an error message window to indicate that the connection is untrusted. This is due to the Alfresco certificate not being tied to the server IP address. In this case, view the certificate and confirm that it is signed by the Alfresco Certificate Authority.

    6. Expand I understand the risks.
    7. Select Add Exception.
    8. Click View.

      This displays the certificate.

    9. Confirm that the certificate was issued by Alfresco Certificate Authority, and then confirm the Security Exception.

    Access to Solr 6 is granted. The Solr Admin page is displayed. It is divided into two parts.

    The left-side of the screen is a menu under the Solr logo that provides navigation through various screens. The first set of links are for system-level information and configuration and provide access to Logging, Core Admin and Java Properties. At the end of this information is a list of Solr cores configured for this instance of Alfresco.

    The center of the screen shows the detail of the Solr core selected, such as statistics, summary report, and so on.

  7. When the index is updated as reported by the SUMMARY report, you can use the REPORT option and check the following:
    • In the REPORT option, node count should match the number of live nodes in the repository (assuming nothing is changing and the index is updated). The index contains a document for failed nodes, so failures need to be considered separately.
    • Any missing transactions; if there are issues, use the FIX option.

      For more information, see the Troubleshooting Solr Index topic.

    • Find errors with specific nodes using DOC_TYPE:ErrorNode option.
    • If there are any issues, use the REINDEX option with the relevant node id.

      For more information, see the Troubleshooting Solr Index topic.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.