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

Comments

intrafusion’s picture

Whilst the free account looks great:

On a free trial account you get 300 Mb of disk space, 5 Solr Indexes, 1 Gb Monthly Bandwidth, 500,000 Documents.

Taken from Question: What are the limitations on a free account?, but there is a problem:

Your FREE collection will expire without a prior notice. It may live for a few days, even weeks, but it may as well get removed without prior notice after a few hours.

Taken from Why does my free collection keep getting deleted?

opensolr’s picture

Well, the free indexes may expire after 15 days.
Granted, we had a system in the past, that removed free indexes that were not used, at random moments in time, in order to respect the good services provided for paying members.

However, at this point, you can rest asured that any opensolr indexes created, will live for at least 15 days.
In case of using opensolr for non-proffit purposes, please use the contact form at https://opensolr.com/contact and explain your use-case and we may be able to provide you with free service, and even solr-related, implementation support in some cases.

Thanks!

Cip - Opensolr.com

opensolr’s picture

Hey there

I'm happy to announce that Opensolr now provides out of the box SolrCloud collections, included in all of our plans.

And we also have 100% FREE for Life accounts now.

So, if you really must use the SolrCloud features, you can now do so.
You can even use the automation APIs to create your collections, update config files, etc.
Everything is -as usual-, automated, and you won't have to ever use the zkcli tools to upload your configs, or do anything outside the Opensolr UI.

Learn more and let us know your thoughts, at: https://opensolr.com