Acquia Solr Search Configuration for Drupal 7

1. Enable the following modules:

  • Acquia agent
  • Acquia Search for Search API (this module must be requested by site through YaleSites)
  • Search API
  • Search facets
  • Search pages
  • Solr search
  • Facet API
  • Custom Search Blocks (for form control)
  • Acquia Site Profile Information (Optional)
  • Search API Multi Aggregate (Optional)
  • Search sorts (Optional)
  • Search views (Optional)
  • Facet API Bonus (Optional)
  • Facet Slider (Optional)
  • Current Search Blocks (Optional)

(Additional modules may be required for dependencies)

2. Connect the site with an Acquia account

    (Configuration > System > Acquia Network settings)


3. Set up a server:

  • Configuration > Search and metadata > Search API > Add server
  • Provide a Server name and Server description
  • Choose Acquia Search as the Service class dropdown box
  • Click Create server


4. Set up an index:

  • Configuration > Search and metadata > Search API > Add index
  • Provide an Index name and Index description
  • Choose Node from the Item type dropdown box
  • Ensure the Enabled checkbox is selected
  • Choose the server created in the previous step from the Server dropdown box
  • Ensure the Index items immediately checkbox is selected
  • In the Field tab, select the Indexed checkbox for the fields that should be indexed and click Save changes


5. From the index View tab select Index now to begin indexing queued content


6. Create a Search page -or- View to render the results:

  • Creating a Search page:

    • Configuration > Search and metadata > Search API > Search pages > Add search page
    • Provide a Search name
    • From the Index dropdown, select the index created in step 4 above
    • Ensure the Enabled checkbox is selected
    • Provide a Search description to be displayed to the user
    • Provide a Path for the new search page
    • Click Create page
    • On the next page, ensure the Query type is Multiple terms
    • Click Create page
  • Creating a View for tabular results:

    • Structure > Views > Add new view
    • Provide a View name
    • Under the Show dropdown, select the index created in step 4 above
    • Provide a Page title and a Path for the view
    • Under the Display format dropdown, select Table
    • On the Displays page for the view, select the desired fields, filters, and sorting options
      (Note that the fields content will appear as type Indexed Node.)
      (Also note the default Indexed Node: CER >> Context (CER >> Content) field is not a required field and can be removed.)
    • Complete any additional view customization and click Save
      (Note an exposed filter for 'Search: Fulltext search' can be added and configured as a block to provide a searchbox for the view content)


7. Configuring facets:

  • Configuration > Search and metadata > Search API
  • Select the Edit link for the index created in step 4 above
  • Select the Facets tab
  • Select the Enabled checkbox for the fields that should be used as facets
  • Click Save configuration
  • The configure display link for selected facets offers additional customization for individual facets


8. Adding facet blocks:

  • Structure > Blocks
    (Facet syntax: Facet API: Search service: <Index name>: <Facet name>)
  • Assign individual facet blocks (or exposed search forms) to desired regions
  • Click Save blocks