I'm using Liferay 6.0.6 CE with Solr 3.5 and here are some steps, supposing you have a good knowledge on integrating Liferay and Solr.
- Get Solr 3.5.
- Use the new versions of schema.xml and solrconfig.xml and make the necessary changes to work with Liferay, or just compare to your former versions.
- Solr 3.5 doesn't accept sorting multiValued fields. So all sortable ones must be defined in schema.xml to not fall into the "*" dynamicField rule.
In order to display Users list in Control Panel, add the following lines to your schema.xml just before the first dynamicField definition:
<field name="firstName" type="string" indexed="true" stored="true" />
<field name="lastName" type="string" indexed="true" stored="true" />
<field name="screenName" type="string" indexed="true" stored="true" />
- Compile Solr code and solr/solrj
- Copy solr/lib/slf4j-api-1.6.1.jar to $tomcatdir/lib/ext.
Before doing the next step, delete all files in solr-web/docroot/WEB-INF/lib.
Copy solr/dist/apache-solr-solrj-3.5-SNAPSHOT.jar and log4j-over-slf4j-1.6.1.jar to solr-web/docroot/WEB-INF/lib
That's it, just delete Solr's indexes and restart Solr and Liferay.
Please sign in to flag this as inappropriate.