]> git.koha-community.org Git - koha.git/commit
Bug 23521: (follow-up) Add quotes
authorNick Clemens <nick@bywatersolutions.com>
Fri, 25 Oct 2019 13:49:05 +0000 (13:49 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 16 Mar 2020 10:24:45 +0000 (10:24 +0000)
commit63641856dd07880bc20e285e04387c162e22050c
treebfdeeafaf8a67e4bfb177b945c58b8c5a2ff8b2e
parentc5e367c54ebaf7ddd9cd2f1df8aa1e7f4299980a
Bug 23521: (follow-up) Add quotes

Not only should terms from facets/limits be grouped, but order should probably matter
We build a different facet for "Dillinger Girl" or "Girl Dillinger"

The parens are possibly overkill now, but I think it makes it very clear and does not hurt

To test:
1 - Follow original plan
2 - Create a new record with 'Girl Dillinger' as author
3 - Search for 'Dill*'
4 - You get all three records (and maybe others that match)
5 - Limit by 'Girl Dillinger' - you get two records
6 - Same for 'Dillinger Girl'
7 - Apply patch
8 - Limits/facets for 'Dillinger Girl' and 'Girl Dillinger' now match a isngle record

Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t