You are here

README.txt in Acquia Search 2.x

Same filename and directory in other branches
  1. 3.x README.txt
Acquia Search module
================================================================================

Provides integration between your Drupal site and Acquia's hosted search
service, Acquia Search [1]. Requires Search API Solr module.

[1] https://docs.acquia.com/acquia-search/

Notes on Acquia Search data protection and index auto-switching
---------------------------------------------------------------

Acquia Search module attempts to auto-detect your environment and automatically
connect to the best-fit Acquia Search index available. This is done to attempt
to protect your data in your production Solr instance; otherwise a development
site could easily overwrite or delete the data in your production index.

This functionality was previously available as a third-party module
https://www.drupal.org/project/acquia_search_multi_subs which will now become
deprecated.

Depending on the indexes already provisioned on your Acquia Subscription, the
module will follow these rules to connect to the proper index:

* If your site is running within Acquia Cloud, Acquia Search will connect to
  the index name that matches the current environment (dev/stage/prod) and
  current multi-site instance.
* If the module can't find an appropriate index above, it will then enforce
  READ-ONLY mode on the production Solr index. This allows you to still test
  searching from any site while protecting your production, user-facing index.

The current state is noted on the Drupal UI's general status report at
/admin/reports/status, as well as when attempting to edit each connection.

You can override this behavior using code snippets or a Drupal variable. This,
however, poses risks to your data that you should be aware of.  Please consult
our documentation at https://docs.acquia.com/acquia-search/multiple-cores to
find out more.

Hidden settings
----------------
- acquia_search.settings.disable_auto_switch
    Boolean value; if TRUE, completely disables the auto-switching behavior
    and will let the site connect to the main/production Solr index normally
    (in read-write mode). Also, if TRUE, the disable_read_only setting below
     is ignored.

   Example settings.php override:
   # $config['acquia_search.settings']['disable_auto_switch'] = true;

- acquia_search.settings.disable_auto_read_only
    Boolean value; if TRUE (only when disable_auto_switch is FALSE or not set)
    then there is no enforcing of read-only mode. This means, regardless whether
    a proper index was found or not, no read-only enforcement will happen.

   Example settings.php override:
   # $config['acquia_search.settings']['disable_auto_read_only'] = true;

- acquia_search.settings.default_search_core
    String that contains default Acquia Search Solr search core. The search core
    should be available in the search cores list returned by Acquia Search API.
    You must disable disable_auto_switch to make the default_search_core option
    work.

    Here's an example for settings.php:

    # Override Acquia Search Solr search core.
    # $config['acquia_search.settings']['default_search_core'] =
      'ABCD-12345.prod.mysite;

- acquia_search.settings.connection_override
    Array that overrides the Acquia Search connection for all your Search API
    Servers using Acquia Search. These overrides are applied at a later stage
    and overrides any and all module behavior from auto-switching or any
    settings done via the UI.

    Here's an example for settings.php:

    # Make all Acquia Search connections connect to a certain index.
    # NOTE: This requires overriding the: scheme, host, port, index_id and
    # derived_key
    $config['acquia_search.settings']['connection_override'] = [
      'scheme' => 'http',
      'host' => 'somehostname.acquia-search.com',
      'index_id' => 'ABCD-12345.prod.mysite',
      'port' => 80,
      'derived_key' => 'asdfasdfasdfasdfasdfasdfasdfasdf
    ];

File

README.txt
View source
  1. Acquia Search module
  2. ================================================================================
  3. Provides integration between your Drupal site and Acquia's hosted search
  4. service, Acquia Search [1]. Requires Search API Solr module.
  5. [1] https://docs.acquia.com/acquia-search/
  6. Notes on Acquia Search data protection and index auto-switching
  7. ---------------------------------------------------------------
  8. Acquia Search module attempts to auto-detect your environment and automatically
  9. connect to the best-fit Acquia Search index available. This is done to attempt
  10. to protect your data in your production Solr instance; otherwise a development
  11. site could easily overwrite or delete the data in your production index.
  12. This functionality was previously available as a third-party module
  13. https://www.drupal.org/project/acquia_search_multi_subs which will now become
  14. deprecated.
  15. Depending on the indexes already provisioned on your Acquia Subscription, the
  16. module will follow these rules to connect to the proper index:
  17. * If your site is running within Acquia Cloud, Acquia Search will connect to
  18. the index name that matches the current environment (dev/stage/prod) and
  19. current multi-site instance.
  20. * If the module can't find an appropriate index above, it will then enforce
  21. READ-ONLY mode on the production Solr index. This allows you to still test
  22. searching from any site while protecting your production, user-facing index.
  23. The current state is noted on the Drupal UI's general status report at
  24. /admin/reports/status, as well as when attempting to edit each connection.
  25. You can override this behavior using code snippets or a Drupal variable. This,
  26. however, poses risks to your data that you should be aware of. Please consult
  27. our documentation at https://docs.acquia.com/acquia-search/multiple-cores to
  28. find out more.
  29. Hidden settings
  30. ----------------
  31. - acquia_search.settings.disable_auto_switch
  32. Boolean value; if TRUE, completely disables the auto-switching behavior
  33. and will let the site connect to the main/production Solr index normally
  34. (in read-write mode). Also, if TRUE, the disable_read_only setting below
  35. is ignored.
  36. Example settings.php override:
  37. # $config['acquia_search.settings']['disable_auto_switch'] = true;
  38. - acquia_search.settings.disable_auto_read_only
  39. Boolean value; if TRUE (only when disable_auto_switch is FALSE or not set)
  40. then there is no enforcing of read-only mode. This means, regardless whether
  41. a proper index was found or not, no read-only enforcement will happen.
  42. Example settings.php override:
  43. # $config['acquia_search.settings']['disable_auto_read_only'] = true;
  44. - acquia_search.settings.default_search_core
  45. String that contains default Acquia Search Solr search core. The search core
  46. should be available in the search cores list returned by Acquia Search API.
  47. You must disable disable_auto_switch to make the default_search_core option
  48. work.
  49. Here's an example for settings.php:
  50. # Override Acquia Search Solr search core.
  51. # $config['acquia_search.settings']['default_search_core'] =
  52. 'ABCD-12345.prod.mysite;
  53. - acquia_search.settings.connection_override
  54. Array that overrides the Acquia Search connection for all your Search API
  55. Servers using Acquia Search. These overrides are applied at a later stage
  56. and overrides any and all module behavior from auto-switching or any
  57. settings done via the UI.
  58. Here's an example for settings.php:
  59. # Make all Acquia Search connections connect to a certain index.
  60. # NOTE: This requires overriding the: scheme, host, port, index_id and
  61. # derived_key
  62. $config['acquia_search.settings']['connection_override'] = [
  63. 'scheme' => 'http',
  64. 'host' => 'somehostname.acquia-search.com',
  65. 'index_id' => 'ABCD-12345.prod.mysite',
  66. 'port' => 80,
  67. 'derived_key' => 'asdfasdfasdfasdfasdfasdfasdfasdf
  68. ];