You are here

README.txt in Search API Synonym 8

CONTENTS OF THIS FILE
---------------------
 * Introduction
 * Requirements
 * Installation
 * Manage synonyms
 * Export synonyms
 * Developers
 * Troubleshooting
 * Sponsors
 * Maintainers

INTRODUCTION
------------
This module let editors or administrators manage synonyms for Search API
directly in Drupal.

Synonyms can be export using the build in Drupal Console command.
Drush command and automatic export using Drupal cron job is in development.

The module support the synonyms.txt format used in Apache Solr.
Other formats can be added using the Export plugin annotation.

REQUIREMENTS
------------
* No requirements.

INSTALLATION
------------
 * Install as you would normally install a contributed drupal module. See:
  https://www.drupal.org/documentation/install/modules-themes/modules-8
  for further information.

MANAGE SYNONYMS
---------------
After installation can you start managing your synonyms and spelling errors
at admin/config/search/search-api-synonyms.

EXPORT SYNONYMS
---------------

Drupal Console
--------------

Export the added synonyms using the Drupal Console command:

- drupal searchapi:synonym:export

Execute the command with --help to see the different options.

Drush 8 and previous versions
-----------------------------

Export synonyms using the Drush command:

- drush search-api-synonym-export

- drush sapi-syn-ex

Drush 9
-------

Export synonyms using the Drush command:

- drush search-api-synonym:export

- drush sapi-syn:export

- drush sapi-syn-ex

Examples
--------
Replace [COMMAND] with one of the above Drupal Console / Drush commands.

Export all Danish synonyms and spelling errors in the Solr format.

- [COMMAND] --plugin=solr --langcode=da

Export all Danish spelling errors in the Solr format.

- [COMMAND] --plugin=solr --langcode=da --type=spelling_error

Export all Danish synonyms without white spaces in the Solr format.

- [COMMAND] --plugin=solr --langcode=da --type=synonym --filter=nospace

Cron
----

Export using Drupal cron is supported. See the settings in /admin/config/search/search-api-synonyms/settings.

DEVELOPERS
----------

The Search API Synonym module provides the following ways for developers to
extend the functionality:

- Plugins
  Export plugin - see the annotation and the Solr plugin:
  - Drupal\search_api_synonym\Annotation\SearchApiSynonymExport
  - Drupal\search_api_synonym\Plugin\search_api_synonym\export\Solr

TROUBLESHOOTING
---------------
-

SPONSORS
--------
 * FFW - https://ffwagency.com

MAINTAINERS
-----------
Current maintainers:
 * Jens Beltofte (beltofte) - https://drupal.org/u/beltofte

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Manage synonyms
  7. * Export synonyms
  8. * Developers
  9. * Troubleshooting
  10. * Sponsors
  11. * Maintainers
  12. INTRODUCTION
  13. ------------
  14. This module let editors or administrators manage synonyms for Search API
  15. directly in Drupal.
  16. Synonyms can be export using the build in Drupal Console command.
  17. Drush command and automatic export using Drupal cron job is in development.
  18. The module support the synonyms.txt format used in Apache Solr.
  19. Other formats can be added using the Export plugin annotation.
  20. REQUIREMENTS
  21. ------------
  22. * No requirements.
  23. INSTALLATION
  24. ------------
  25. * Install as you would normally install a contributed drupal module. See:
  26. https://www.drupal.org/documentation/install/modules-themes/modules-8
  27. for further information.
  28. MANAGE SYNONYMS
  29. ---------------
  30. After installation can you start managing your synonyms and spelling errors
  31. at admin/config/search/search-api-synonyms.
  32. EXPORT SYNONYMS
  33. ---------------
  34. Drupal Console
  35. --------------
  36. Export the added synonyms using the Drupal Console command:
  37. - drupal searchapi:synonym:export
  38. Execute the command with --help to see the different options.
  39. Drush 8 and previous versions
  40. -----------------------------
  41. Export synonyms using the Drush command:
  42. - drush search-api-synonym-export
  43. - drush sapi-syn-ex
  44. Drush 9
  45. -------
  46. Export synonyms using the Drush command:
  47. - drush search-api-synonym:export
  48. - drush sapi-syn:export
  49. - drush sapi-syn-ex
  50. Examples
  51. --------
  52. Replace [COMMAND] with one of the above Drupal Console / Drush commands.
  53. Export all Danish synonyms and spelling errors in the Solr format.
  54. - [COMMAND] --plugin=solr --langcode=da
  55. Export all Danish spelling errors in the Solr format.
  56. - [COMMAND] --plugin=solr --langcode=da --type=spelling_error
  57. Export all Danish synonyms without white spaces in the Solr format.
  58. - [COMMAND] --plugin=solr --langcode=da --type=synonym --filter=nospace
  59. Cron
  60. ----
  61. Export using Drupal cron is supported. See the settings in /admin/config/search/search-api-synonyms/settings.
  62. DEVELOPERS
  63. ----------
  64. The Search API Synonym module provides the following ways for developers to
  65. extend the functionality:
  66. - Plugins
  67. Export plugin - see the annotation and the Solr plugin:
  68. - Drupal\search_api_synonym\Annotation\SearchApiSynonymExport
  69. - Drupal\search_api_synonym\Plugin\search_api_synonym\export\Solr
  70. TROUBLESHOOTING
  71. ---------------
  72. -
  73. SPONSORS
  74. --------
  75. * FFW - https://ffwagency.com
  76. MAINTAINERS
  77. -----------
  78. Current maintainers:
  79. * Jens Beltofte (beltofte) - https://drupal.org/u/beltofte