Incompatibility between Drupal Starter Kits Search and Drupal Search modules
The Drupal Starter Kits Search module is not compatible with the Drupal core Search module.
Inaccurate search results in production environments
If you stage down from a production environment to a non-production environment, the system might return inaccurate or empty search results in the production environment.
Workaround:
Add the following snippet in the settings.php
file:
if (isset($_ENV['AH_SITE_ENVIRONMENT'])) {
// Setting for Acquia Hosting Envs.
switch ($_ENV['AH_SITE_ENVIRONMENT']) {
case 'dev':
$settings['acquia_search.settings']['override_search_core'] = 'ALQT-201252.dev.dhsinternet';
break;
case 'test':
$settings['acquia_search.settings']['override_search_core'] = 'ALQT-201252.test.dhsinternet';
break;
case 'prod':
// Site Factory may require a different value depending on site
// configuration.
$settings['acquia_search.settings']['override_search_core'] = 'ALQT-201252.prod.dhsinternet';
break;
default:
$settings['acquia_search']['read_only'] = TRUE;
}
} else {
// Local Dev envs
// Read only mode
$settings['acquia_search']['read_only'] = TRUE;
// Force pointing non-prod Search Core
$settings['acquia_search']['override_search_core'] = 'ALQT-201252.test.dhsinternet';
}
Installation issues
Unable to download the packages.json
file
The packages.json
file could not be downloaded. You can find the file in the following location:
https://asset-packagist.org/packages.json
Workaround:
- If you installed Drupal Starter Kits through
acquia/drupal-recommended-project
oracquia/acquia-cms-project
(deprecated), you must remove the entry for asset-packagist.org from yourcomposer.json
file. For more information, see Removing Asset Packagist. - After you remove the source entry for
asset-packagist.org
, you must runcomposer update
, commit, and deploy the resulting changes to you lock file.