Liferay Solr Integration
Environment:
Liferay 5.2.3 or 5.2.5
Solr 1.4
solr-web-5.2.3.1.war
Follow these steps
Step 1:
Add the below line to catalina.sh or catalina.bat, i.e setting the $SOLR_HOME dir
(/content/liferay/data/solr)
set JAVA_OPTS=%JAVA_OPTS% -Dsolr.solr.home="C:\solr1"
Step 2:
Copy conf directory from solr downloaded (apache-solr-1.4.0\example\solr\conf) to the $SOLR_HOME (/content/liferay/data/solr) from step 1
Step 3:
Replace $SOLR_HOME/conf/schema.xml with solr-web-5.2.3.1/WEB-INF/conf/schema.xml
Step 4:
Edit $SOLR_HOME/conf/solrconfig.xml
change this line with appropriate dir ...
to /content/liferay/data/solr/data/
Step 5:
Restart
Step 6:
deploy your solr-web from control panel or deploy dir, also you can download that from here solr-web-5.2.3.1
Step 7:
run reindex in liferay control panel->server administration
Step 8:
Restart
Comments