As mentioned before, you are able to set up a single Solr instance, the backend engine of eZ Find, to serve multiple sites (it does not even matter if these are on the same box). Similar to a database, Solr is capable of having multiple search indexes from one servlet, because Solr supports the concepts of multiple "cores". This means that it can run multiple instances of itself inside a servlet container. Each core has its own set of configuration files (including the "schema") and dedicated directories.
Lets go through the steps of setting up a Solr instance which must serve two sites. To keep it simple we'll call them ezlabs .no and ez.no.
The easiest way is to first prepare a central location for the Solr Index. This can for example be:
/srv/solr
/srv/solr/java /srv/solr/cores
ln -s /srv/solr/java/solr/lib /srv/solr/cores
/srv/solr/cores ezlabsno/data ezlabsno/conf ezno/data ezno/conf
<?xml version="1.0" encoding="UTF-8" ?> <!-- snip the comments from Apache wiki --> <solr persistent="true" sharedLib="lib"> <cores adminPath="/admin/cores"> <core name="ezlabsno" instanceDir="ezlabsno" /> <core name="ezno" instanceDir="ezno" /> </cores> </solr>
cd /srv/solr/java; java -Dsolr.solr.home=/srv/solr/cores -jar start.jar
http://localhost:8983/solr/ezlabsno http://localhost:8983/solr/eznoPowered by Exponential™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.