Installing Apache Solr Search with free (trial) Opensolr server on Drupal 7
Download and install the Apache Solr Module - https://drupal.org/project/apachesolr
Opensolr Setup
Setup a free trial Solr hosting account with Opensolr, this is valid for 15 days - https://opensolr.com
In your Opensolr Control Panel > Add New Collection:
Server Location: Any
Collection Name: mysitesolrtest
Type of collection: Drupal 7 Collection Template
Your Collections Manager should now display your collection - click on it's Cog wheel icon to enter the settings
In the 'Core Info' tab you'll find the URL that you'll need for Drupal 7, similar to:
http://nl.opensolr.com/solr/mysiteopensolrtest
In the 'Access IPs' tab
Add and save IP Address of your server to SOLR URI Handlers:
- /select
- /update
- /terms
- /spell
- /admin/ping
- /admin/
Change the schema.xml in the Apache Solr module
In your Opensolr Configuration tab, copy the schema.xml info to you drupal install Apache Solr module:
/sites/all/modules/contrib/apachesolr/solr-conf/solr-4.x/schema.xml
Drupal 7 Setup
Configure Apache Solr Search - /admin/config/search/apachesolr
Add a search environment:
Enter the Opensolr URL from above in the Solr server url: http://nl.opensolr.com/solr/mysiteopensolrtest
Click the 'Test Connection' button and you should be connected to your Opensolr server
Configure Drupal Search Settings - mysite.com/admin/config/search/settings
Choose the number of items to index per cron run and specify Apache Solr search for the Search Modules
Run your site's cron and you should be able to see the 'Total Records' number increase in your Opensolr control panel
Alternatively, Install Search API module
Before you do, you might want to read this page (don't install both), but if you still want to use Search API...
Configure Search API - admin/config/search/search_api
Add Server
- Server name: Opensolr
- Enabled
- Server description: mysiteopensolrtest account on sopensolr.com
- HTTP protocol: http
- Solr host: nl.opensolr.com
- Solr port: 80
- Solr path: solr/mysiteopensolrtest
- Add your opensolr account details for Basic HTTP Authentication
- HTTP method: Auto
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