Previous Topic: Install and Configure Apache SolrNext Topic: Set up and Configure Node 2


Configure Liferay to use Solr for Searching

Do not run Liferay and Solr search engine on the same machine.

Follow these steps:

  1. Install the Solr Liferay plugin on CA Open Space node 1.
  2. Copy solr-web.war file from OSOP\tools to the OSOP\deploy folder of the CA Open Space installation directory.
  3. Open solr-spring.xml from the WEB-INF/classes/META-INF folder.
  4. Modify the following value to point to the server where Solr is up and running:
    <constructor-arg type="java.lang.String" value="http://localhost:8080/solr" />
    
  5. Save the solr-spring.xml file and place it back in the plugin archive.
  6. Copy the schema.xml file from the extracted solr-web folder (docroot/WEB-INF/conf) to $SOLR_HOME/conf folder of the CA Open Space common server.
  7. Restart Solr on the CA Open Space common server.

    Liferay server search is now upgraded to use Solr.

  8. Select Control Panel, Server, Server Administration.
  9. Click Execute button next to reindex all search indexes at the bottom of the page.

    Liferay will begin sending indexing requests to Solr for execution. Once Solr has indexed the data, a search server runs independently of all the CA Open Space nodes.The CA Open Space search now uses the Solr as the search index. This is ideal for a clustered environment, as it allows all the CA Open Space nodes to share one search server and one search index, and this search server operates independently of all the nodes.