Acquia Search Shared Index

Component ID

1933024

Component name

Acquia Search Shared Index

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Sites using Acquia Search typically have one Apache Solr Core/Index assigned to them, shared across multiple environments. To prevent duplicate search results, the Apache Solr environment is configured in "Read-only" mode on all-but-one of the environments (usually the production site).

This can make it difficult to test new Apache Solr-related features or configurations in the development- or staging-environment and can cause issues when content is not synchronized across the different environments.

This module adds an additional field (ss_ah_environment) containing the environment identifier when indexing content, and limits returned query results by that field. This essentially divides an index into sections per (Acquia Hosting) environment.

Installation

Enable the module. The module does not require any configuration.

Drawbacks

  • By enabling this module, each environment (local, development, staging and production) stores all documents within its own section of the index, causing the index to be larger (typically 2 - 3 times as big) then would be the case if documents would only be indexed from one environment.
  • Deleting an index via admin/config/search/apachesolr/settings/<env_id>/index will only delete the content for the active environment. If you enable this module when the index is not empty, you will no longer be able to clear the content already present and not tagged with an environment id. While this content will not be returned as part of search results, it does waste space in the index.

Further reading

(*) Requires registration.

Photo by twohelmetscooking