Acquia Cloud, including Acquia Site Factory, uses the SearchStax Drupal connector. Follow this guide to configure the connector for your Acquia-hosted Drupal site and send content to a SearchStax Site Search App.
Prerequisites
- Administrator access to your Acquia-hosted Drupal site and permission to install or configure modules.
- A SearchStax Site Search App with an Update endpoint and Read & write token.
- A plan for the content, fields, languages, and environments that should be indexed.
1. Install and Enable Required Modules
- Install the Drupal Search API, Search API Solr, and SearchStax modules.
- Enable the modules in Extend.
Composer is recommended for installation. Use your standard process for enabling modules in your environment.
2. Create the Search API Server
- Go to Configuration > Search and metadata > Search API.
- Select Add server, enter a name, and set Backend to Solr.
- Set Solr connector to SearchStax Cloud with Token Auth.
- Enter your app's Update endpoint and Read & write token from Site Search > App Settings > All APIs > Search & Indexing, then select Save.
If you connect multiple Acquia environments, use a separate SearchStax App for each environment so indexing tasks do not replace data in a shared App.
3. Create the Index and Choose Fields
- From Search API, select Add index, choose Content as the data source, select the SearchStax server, and select Save and add fields.
- Select the fields you want to index, such as
rendered_item,langcode,status,uid,content,body,title, andpublished date. - Mark searchable fields as fulltext, enable HTML filter in Processors, and save.
- Open the index and select Index now, or wait for the scheduled indexing run.
4. Configure SearchStax Settings
- Go to Administration > Configuration > Search and metadata > SearchStax settings.
- Configure optional Analytics credentials and choose whether Drupal searches should use Site Search configurations.
- Select Save configuration.
5. Map Drupal Fields to Site Search
In Site Search, go to Basic configurations > Results fields and map the Drupal fields used for titles, descriptions, URLs, dates, and other result data.
6. Verify the Connection
- Confirm that the index reports a successful connection and indexing run.
- Open Search Preview and test representative titles, fields, and URLs.
For advanced Drupal settings, tracking, Acquia Search migration guidance, troubleshooting, and the complete configuration procedure, see Configure the Drupal Connector.