Logo Help Center

Integrating Solr 6 in Enterprise Server 10

Integrating Solr 6 in Enterprise Server 10

Solr 6 can be integrated in Enterprise Server by performing the steps outlined below, listed in the order in which they should be performed.

Before you start

To verify which versions of Enterprise Server can be used in combination with Solr 6, please check the Compatibility Matrix.

Also closely follow the Enterprise Server Release Notes for any changes that may have been made.

1. Installing Solr

Perform the following steps by following the Apache Solr Reference Guide (PDF):

Step 1. Install Solr.

Step 2. Configure Solr.

Step 3. Creating a Solr Core (to be used by the Enterprise Server installation).

Make sure to have completed these steps before continuing.

2. Solr configuration for Enterprise

After performing basic configuration steps during the installation of Solr, additional settings need to be configured for use with Enterprise Server.

Tip: Easily manage and configure settings of all configuration files by adding them to a single configuration file.

Step 1. Open the Solr configuration file on Enterprise Server:

<Enterprise installation directory>/config/config_solr.php

Step 2. Verify if the correct URL is defined in the SOLR_SERVER_URL setting.

Example: define ('SOLR_SERVER_URL', 'http://localhost:8983/solr');

Step 3. Verify if the correct collection is defined in the SOLR_CORE setting.

Example: define ('SOLR_CORE', 'collection1');

Step 4. (Optional) Define the time-out duration in the SOLR_TIMEOUT setting.

Example: define ('SOLR_TIMEOUT', 5);

Note: Changing this value may be necessary when time-outs occur while indexing many objects. However, usually it is better to adjust the solrconfig.xml file by changing settings such as ramBufferSizeMB, mergeFactor, and autoCommit.

3. Installing the Enterprise Schema

In this step, the default Solr schema file is replaced by the Enterprise version.

Step 1. Unpack the file SolrEnterprise_10.x.x_Buildyz.zip that is delivered as part of the Enterprise Server installation.

Step 2. Copy the file named schema.xml to <solr>/<corename>/conf/. Confirm that you want to overwrite the already existing schema.xml file.

Note: The core name is usually 'collection1'.

Step 3. Copy the file named solrconfig.xml to <solr>/<corename>/conf/. Confirm that you want to overwrite the already existing solrconfig.xml file.

Step 4. Access the admin page of Solr 6 and click Reload for the appropriate collection.

4. Testing the integration

Step 1. In Enterprise Server, activate the Server plug-in named Solr Search.

Step 2. In Enterprise Server, access the Health Check page and run the Solr Search Server test.


Error when (re-)indexing Solr: "Operation timed out after 5000 milliseconds with 0 bytes received"

When this error is shown in the log files after (re-)indexing Solr, increase the value of the SOLR_TIMEOUT setting (for example by doubling it) in the <Enterprise installation directory>/config/config_solr.php file.

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request


Please sign in to leave a comment.