]> git.koha-community.org Git - koha.git/commit
Bug 19559: Add '-' to list of characters we don't split search terms on
authorNick Clemens <nick@bywatersolutions.com>
Wed, 1 Nov 2017 15:47:39 +0000 (15:47 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 30 Jan 2018 07:55:24 +0000 (08:55 +0100)
commit70c0452e2ca9fb1a48250a5ce302b68cc434e88f
tree04cfe59be35c95b3998f8ed266c9fa80f534a5fc
parentafeef629f5794e2aadf43c65e751e054be7efe10
Bug 19559: Add '-' to list of characters we don't split search terms on

Test plan assumes
QueryAutoTruncate = automatically
SearchEngine = Elasticsearch

To test:
0 - Apply Unit test patch only
1 - prove t/db_dependent/Koha_SearchEngine_Elasticsearch_Search.t
2 - Should fail
3 - Apply this patch
4 - prove t/db_dependent/Koha_SearchEngine_Elasticsearch_Search.t
5 - should pass
6 - search for 'Local-number:"4"' (or a vlid biblionumber)
7 - should get expected result

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a081ed16c0c3295253408f999354e6bbfa5fe183)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm