Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Install Search API Solr

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:04
    In this tutorial, we're going to start by installing
  • 0:07
    the Search API module and the Search API Solr
  • 0:10
    module, which provides a service class for Search API for interacting with an Apache Solr server.
  • 0:16
    Then we'll use
  • 0:19
    the configuration that's provided by the Search API Solr module in order to reconfigure
  • 0:23
    our existing Apache Solr server so that it has a better understanding of Drupal
  • 0:27
    and Drupal's content and data types.
  • 0:30
    Finally, we'll create a configuration in the Search API
  • 0:34
    user interface that allows for a connection between Drupal and our Apache Solr server.
  • 0:40
    By the end of this lesson, you should have Apache Solr running and Drupal up and running

Install Search API Solr

Loading...

In this tutorial we'll walk through downloading and installing the Search API module, the Search API Solr module, and their dependencies. Then we'll look at using the Search API Solr configuration files with our Solr server. These configuration files are specially crafted to help with indexing data contained in a Drupal site and allow Solr to have a better understanding of Drupal's entities, fields, and the data that they contain. For example, mapping a Drupal Field API body field on a page node type to the appropriate field type in Solr.

The gist of this tutorial is, locating the Solr configuration files in the search_api_solr/solr-conf/ directory, talking a little bit about what each one does, and then demonstrating how to copy those files into the configuration for your Solr server so that Solr will start using them.

After looking at the various configuration files, and then placing them into our Solr instance, we'll connect Drupal to our Solr server by creating a new Search API server configuration within Drupal's UI. This will allow us to confirm that our Apache Solr server, and Drupal, will be able to talk to one another.

By the end of this tutorial you should be able to configure Solr to work with Drupal, connect the two, and verify that the connection is working.

Downloads: 
Log in or sign up to download companion files.