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: 

Create a Search API Index

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 order for Solr to be able to provide search results,
  • 0:07
    we need to first send our Drupal content to the Solr server
  • 0:11
    so that it can be indexed.
  • 0:13
    In this tutorial, we'll take a look at connecting the Search API module
  • 0:18
    with the Solr server and creating an index
  • 0:20
    that maps Drupal's content types and field types
  • 0:24
    to Solr data types.
  • 0:27
    We'll also look at how the various configuration options,
  • 0:30
    like data alterations and processors, affect indexing.
  • 0:34
    Finally, we'll run the indexer so that our content

Create a Search API Index

Loading...

In order for Solr to provide search results we need to first send our Drupal content to the Solr server so that it can be indexed. In this tutorial we'll look at connecting the Search API module with the Solr server and creating an index that maps content in Drupal to data types in Solr. We'll also look at how the various configuration options effect the Solr index.

After creating a Search API index configuration we'll look at running the indexer, essentially queuing all the content on our site for indexing, and then telling Drupal to send the documents on our site to the Solr server for indexing. This can be done either via the UI or with Drush. You can choose to index content as it's created, or for sites with higher rates of new content you can send it to the indexer in periodic batches. Whichever you choose, making sure that you've got a system in place for periodically sending items queued for indexing to Solr is a critical step.

By the end of this tutorial you should be able to send content from Drupal to Solr for indexing, and verify that the content is showing up in the Solr server's index.

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

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.