Information for: DEVELOPERS   PARTNERS

Configuring the Search API attachments module

If you use the Search API attachments module for indexing and searching file attachments, you must configure the module to work with Acquia Search. To configure Search API attachments, complete the following steps, depending on your version of Drupal:

  • Drupal 8

    Note

    You must already have a working Acquia Search configuration for your website.

    1. Install the Search API attachments module, which requires using Composer.

    2. Sign in to your Drupal website as a user with the administrator role, and then enable the module.

    3. In the admin menu, go to Configuration > Search API attachments.

    4. In the Extraction method list, click Solr extractor.

    5. In the Solr server list, click Acquia Search API server (which uses Acquia Search as the backend).

    6. Click Submit and test extraction to test.

      Note

      As of August 9, 2017, the Solarium library (required by the Search API Solr module) requires a patch to properly extract files using a remote Solr instance (including Acquia Search). If you experience the following on-screen error, or log message: Unfortunately, the extraction doesn't seem to work with this configuration when clicking Submit and test extraction, try to patch Solarium by running the following command in your Drupal docroot (the vendor folder may also be at the same level as your docroot):

      cd vendor/solarium/solarium && wget https://gist.githubusercontent.com/janusman/fc7833a8598e436434899d2b369e04bb/raw/3583b2531fb90edf900e3f3b552ae4d339c40e27/solarium-patch-3.8.1-to-3.x-with-boundary-fix.patch && patch -p1 <solarium-patch-3.8.1-to-3.x-with-boundary-fix.patch
      

    Search Tika extractor configuration screen

  • Drupal 7

    1. Install and enable both the Search API attachments module and its requirements.

    2. Go to the Search API configuration page, and then click the Search API attachments tab.

    3. Scroll to the Solr Extraction Settings section, and in the Solr extracting servlet path field, enter extract/tika.

      Extracting servlet path