Setting up multiple cores for apache solr for Ubuntu 12.04 and Drupal 7
- by chrisjlee
I'm setting up solr locally for my development purposes and integration with Drupal 7. I'm not very familiar with tomcat. My background has primarily been LAMP setups.
So I went and installed the package provided by ubuntu for apache solr following this guide.
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
sudo apt-get install solr-tomcat
I've got that working. The apt-get package manager does a great job and allows me to setup solr but with one core.
What steps need to be taken to enable multi core setup for apache solr?
And below is my solr.xml file:
sudo nano /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
<!--
Context configuration file for the Solr Web App
-->
<Context path="/solr" docBase="/usr/share/solr"
debug="0" privileged="true" allowLinking="true" crossContext="true">
<!-- make symlinks work in Tomcat -->
<Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" />
<Environment name="solr/home" type="java.lang.String" value="/usr/share/solr" override="true" />
</Context>