Koha-clms/Koha/SearchEngine
Nick Clemens e2a3710b7d
Bug 39076: Use state variable to avoid creating extra ES connections
As elsewhere in the code, we should use a state variable for our
'bib_searcher' object to avoid overhead of extra ES connections.

Worth noting - we don't actually use the 'bib_searcher' at all during
record auto linking as we pass skipmetadata

To test:
0 - Apply patch
1 - Enable biblio auto linking
    AutoLinkBiblios, CatalogModuleRelink, LinkerRelink
2 - Stage and import a marc file
3 - Confirm record authorities link as expected
4 - Search authorities in the staff interface
5 - Confirm usage counts are shown for results

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e2207cb478)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-09-29 11:39:37 +02:00
..
Elasticsearch Bug 39076: Use state variable to avoid creating extra ES connections 2025-09-29 11:39:37 +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
…
QueryBuilder.pm
…
Search.pm Bug 14007: Filter search result values to remove OpacHiddenItems values 2024-10-25 16:41:39 +02:00