Bug 25030: Implement IncludeSeeFromInSearches with Elasticsearch
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 10 Nov 2020 14:22:21 +0000 (15:22 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 23 Oct 2021 01:50:57 +0000 (15:50 -1000)
commit58df78e855ea0e1bfdb771eb0a8bf0af7172799f
tree72429a628c99b2cf6ca080da4a8dacbc86fb1b1b
parentb46a5d7e6cc798073751d39b730106229046f612
Bug 25030: Implement IncludeSeeFromInSearches with Elasticsearch

Test plan:
1. Create an authority with at least a 1XX$a and a 4XX$a, for instance:
    100 $a Foo
    400 $a Bar
2. Create a biblio and add a link to this authority using the
   cataloguing plugin
3. Disable syspref IncludeSeeFromInSearches
4. Reindex the biblio. You should be able to find it when searching
   'Foo' but not when searching 'Bar'
5. Enable syspref IncludeSeeFromInSearches
6. Reindex the biblio. You should be able to find it when searching
   'Foo' and also when searching 'Bar'
   without the patch, 'Bar' doesn't yeld results. With it, it does.
7. prove t/db_dependent/Koha/SearchEngine/Elasticsearch.t

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit a106accfe8d7e4cd380b2e7e316e50466f358e19)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Filter/MARC/EmbedSeeFromHeadings.pm
Koha/SearchEngine/Elasticsearch.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch.t