This documentation is for the Apache Solr Search Integration module that integrates Drupal with a Solr server for searching.
Related Projects For Drupal 7
- Apache Solr File
- ApacheSolr Attachments
- Apache Solr Organic Groups Integration
- ApacheSolr Views integration
- Apache Solr Stats
- Apache Solr autocomplete
- Apache Solr Multilingual
- Apache Solr Config Generator
- Apachesolr Panels
- Apache Solr Sort UI
- Apachesolr Commerce
- Apachesolr User
- Apachesolr Term
- Apache Solr Field Collection
- Apache Solr Exclude Node
- Apache Solr Taxonomy Exclude
- Display Suite
- Profile2 Apachesolr
- Apachesolr examples
- Enterprise Search
- Multisite search
- Apachesolr Asset
- Apachesolr Reference
- Apachesolr Paragraphs
- Apachesolr API
Related Projects For Drupal 6
- Apache Solr Custom Path
- ApacheSolr Attachments
- Multisite search
- ApacheSolr NodeReference
- Apache Solr Organic Groups Integration (for 6.x-2.x)
- Local Solr (geospatial search)
- ApacheSolr Ubercart
- ApacheSolr Views integration
- Webmail Plus
- Exhibit
- Project
- Solr Service
- Apache Solr Stats
- Apache Solr autocomplete
- Apache Solr AJAX
- Apache Solr Biblio
- Simple Geo
- Apache Solr Money Slider
- Node displays
- Apache Solr Multilingual
- Apache Solr Exclude Node
- Assistant
- Assistant ref
- Assistant search
- CiviCRM integration
- Nodereference Extras
- Panels support
- Apache Solr Diagnostic Tools
Other documentation and videos
- Enterprise Apache Solr with Tomcat
- Apache Solr Multicore on D7
- HowTo video from Got Drupal, focusing on Acquia Search
- Robert's Apache Solr talk at DrupalCamp Stockholm
- Using hook_apachesolr_cck_field_mappings()
- http://dc2009.drupalcon.org/session/more-search-how-apachesolr-changes-w...
- Slides from Robert's ApacheSolr presentation at Do it With Drupal.
- Drupal 6 - Guide on how to make a custom search by content type
- http://robshouse.net/blog-post/fosdem-2008-drupal-apachesolr-module-0
- http://www.archive.org/details/drupal_search
- Solr and reverse proxy with Varnish
- Views 3 + Apache Solr
- Random results with Apache Solr
- Installing on CentOS
- Another writeup on installing on CentOS with Jetty
- Load balancing with haproxy
You should also read the 7.x-1.x README.txt as it may be more up to date than this page.
Use Solr 1.4.x, 3.5.x or 4.6.x
The configuration files use features from Solr 1.4.x, so Solr 1.3 is not supported. Solr 4.6.0 or 3.5.0 or later is now preferred.
Installation Prerequisites
Prerequisites: Java 5 or higher. For Drupal 6.x-1.x, PHP 5.2 is recommended, but PHP 5.1.4 will work if you install the PECL json extension into PHP or (for those who cannot install PHP extensions) if you install the Zend Framework JSON classes as described in the README.txt
For Drupal 6.x-1.x you need the PHP library from the external project. The project is found at: http://code.google.com/p/solr-php-client/.
This library can be installed either in the apachesolr module directory (required for 6.x-1.x), or in sites/all/libraries/. The latter requires you to have the Libraries module installed, but has the benefit that the library does not need to be reinstalled when performing module upgrades.
To install the library, go to either the apachesolr module directory or sites/all/libraries/, and run this command:
svn export -r22 http://solr-php-client.googlecode.com/svn/trunk/ SolrPhpClient
Note that revision 22 is the currently tested and suggested revision. It is generally not needed to install newer versions (like r60). Make sure that the final directory is named SolrPhpClient under the apachesolr module directory.
Installing Apache Solr
Instructions for installing apache solr on your environment can be found here
Enabling facets
(7.x or 6.x-3.x)
(in order to do this, you have to install FacetAPI)
1. Go to Administer > Configuration > Apache Solr Search > Settings
2. Click "facets" next to the search environment you're currently using.
3. Check the facets that you want to add an click "Save configuration".
4. Go to Administer > Structure > Blocks. A block for each facet that you enabled will be available. Place the block in the region where you want it to show.
5. Click "Save blocks."
Enabling facets (6.x)
Enable blocks for facets at Administer > Site building > Blocks.
Upgrades from 6.x-1.x or 6.x-2.x
IMPORTANT: there is no upgrade path from 6.x-1.x or 6.x-2.x. If you previously
installed those modules you must disable and uninstall them prior to
installing 6.x-3.x or 7.x-1.x.
You will have to install the new schema.xml and solrconfig.xml files, and restart
the Solr server (or core) and delete your index and reindex all content.