Koha-clms/Koha/SearchEngine
Frédéric Demians 864550dbaf
Bug 36433: Plugin hook elasticsearch_to_document
Add a new hook elasticsearch_to_document in order to allow completing
the 'document' to be sent to Elasticsearch. Usage example: (1) add new
search fields, (2) normalize/sanitize existing fields, (3) use id fields
to retrieve info via web services in other repositories (say VIAF), (4)
download file referenced in a field, and index its content.

To test:

1. Apply the unit tests patch, and run it:

   prove t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t

   => FAIL: Tests fail! The hook is not implemented so the desired

2. Apply this patch, and then repeat 1:

   => SUCCESS: It works!

Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e0b829bd66)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-08-04 12:27:00 +02:00
..
Elasticsearch Bug 40351: Remove warning from oha/SearchEngine/Elasticsearch/Search.t 2025-08-01 11:26:23 +02:00
Zebra Bug 14007: Filter search result values to remove OpacHiddenItems values 2024-10-25 16:41:39 +02:00
Elasticsearch.pm Bug 36433: Plugin hook elasticsearch_to_document 2025-08-04 12:27:00 +02:00
Indexer.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
QueryBuilder.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Search.pm Bug 14007: Filter search result values to remove OpacHiddenItems values 2024-10-25 16:41:39 +02:00