On this page
Ubuntu Server (Unknown Ubuntu version. With Tomcat)
Installing Apache Solr on Ubuntu requires several dependencies. The easiest and quickest way to install Solr on Ubuntu currently is done with the package manager: apt
Invoke the following command and you should be able to get Apache Solr installed on Ubuntu:
sudo apt-get install solr-tomcat
Make sure Java 6 is installed on your machine:
sudo apt-get install sun-java6-jre sun-java6-plugin
Optional Setup: Drupal Search API integration
Optionally you can get Drupal set up with Drupal Search API integration.
Use the Solr Apache integration files schema.xml and solrconfig.xml to get up and running quickly.
Using the Search API Solr module copy those files and place them in your Solr configuration folder:
mkdir ~/solrconfig;
cd ~/solrconfig
wget drupalcode.org/project/search_api_solr.git/blob_plain/HEAD:/solr-conf/1.4/solrconfig.xml
wget drupalcode.org/project/search_api_solr.git/blob_plain/HEAD:/solr-conf/1.4/schema.xml
sudo cp -v *.xml /etc/solr/conf
Restart the Tomcat service
service tomcat restart
Visit this URL in your browser: http://localhost:8080/solr/admin/file/?file=schema.xml
To verify that the schema files we've copied over have been loaded, look for the following schema to be loaded near the top of the file:
<!--
This is the Solr schema file. This file should be named "schema.xml" and should be in the conf directory under the solr home (i.e. ./solr/conf/schema.xml by default) or located where the classloader for the Solr webapp can find it. For more information, on how to customize this file, please see http://wiki.apache.org/solr/SchemaXml
-->
<schema name="search-api-1.0" version="1.2">
After that you're done!
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion