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 need to configure it to work with Acquia Search. To do this, 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 an administrator, 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 issues when clicking Submit and test extraction, attempt 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://patch-diff.githubusercontent.com/raw/solariumphp/solarium/pull/519.patch && patch -p1 <519.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. In the Solr Extraction Settings section, in the Solr extracting servlet path field, enter extract/tika.

      Extracting servlet path