Apache Solr is a system for indexing and searching site content. Pantheon provides Apache Solr as a service that works well for the majority of sites on the platform. No permission or action is required from Pantheon to use Solr.
Currently, the version of Solr on Pantheon is Apache Solr v3.6.
However, If you are looking for additional features for more advanced use cases, you may want to consider an external Solr service.
The Opensolr service offers a number of features including:
- Smart full-text search
- Similarity search
- PDF and document search with opensolr Tika
- JTS Polygonal geo-spatial search
- REST-like API
This doc covers Opensolr configuration for Drupal sites. For WordPress-Opensolr integration, see Opensolr's WPSolr Integration tutorial.
This doc assumes that you have already enabled:
- Drupal 7 the ApacheSolr module
- Drupal 9 the Search API Solr module using Composer (required by Search API Solr to manage dependencies).
After you have signed up at Opensolr.com, log in and click My Indexes, then click Add New.
To create your index:
From the Version list on the left, select the environment's SOLR version
Select your preferred region
Choose a name for your index
After filling out the appropriate fields, click Add Index to create your index. You will then see a card on your dashboard for your index. Click on the index name to go to the overview page for your index. From this page, copy the following information before moving forward:
To remove HTTP Authentication, Click Remove HTTP Auth
Complete the steps below for Drupal 7.
To get your index working with a Drupal site, set some configuration options in the ApacheSolr module. You can quickly reach the ApacheSolr settings page by appending the following to your site’s URL:
Provide two items to the ApacheSolr configuration:
ServerURL: Paste the Connection URL from Opensolr here.
Description: Briefly describe your index here.
When you've finished, click Save.
A schema must be pushed in each environment (Dev/Test/Live).
Now that you created the index and configured the ApacheSolr Drupal module to point to the new index, test the connection and make sure ApacheSolr can communicate with the Opensolr index.
admin/config/search/apachesolr/settings and click on your index.
To test the connection, click Test Connection.
If Drupal returns a success message like “Your site has contacted the Apache Solr server”, you have successfully set up your index. If not, go back and complete the configuration steps above.
If you'd like to create custom configurations or manually edit your index, synonyms list, stopwords, etc., you can do so by clicking on the Configuration icon on your Opensolr Search Index's Tools page, then selecting the configuration file you wish to edit.