]> git.koha-community.org Git - koha.git/commit
Bug 25030: Implement IncludeSeeFromInSearches with Elasticsearch
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 10 Nov 2020 14:22:21 +0000 (15:22 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 22 Oct 2021 15:25:40 +0000 (11:25 -0400)
commita106accfe8d7e4cd380b2e7e316e50466f358e19
tree25452504f4503f58c34fabc818fd1429e81e42cc
parentb9d34c16e9b0ac83e055356c3680d87724528b57
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>
Koha/Filter/MARC/EmbedSeeFromHeadings.pm
Koha/SearchEngine/Elasticsearch.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch.t