Bug 23521: Put parentheses arround limit terms
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 29 Aug 2019 15:06:14 +0000 (15:06 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 3 Apr 2020 17:21:39 +0000 (17:21 +0000)
commitbfe923de3e57631ac59515c65e90e9253988de23
tree5806258d78c5c85eb5ca66631e7f5f2c7831d93f
parentb32023b10109e9e487f5aa59d194fa5599231743
Bug 23521: Put parentheses arround limit terms

Test plan:
  - Use Elasticsearch 6 (you'll need Bug 18969),
  - create a biblio (#1) with "Dillinger Girl" in author and what you
    want in title,
  - create another biblio (#2) with the word "girl" in the title and
    "Dillinger Escaplan" as author
  - reindex
  - search * and refine on "Dillinger Girl"
  - Ko => Biblio #1 and #2 appear
  - Apply this patch,
  - search * and refine on "Dillinger Girl"
  - Ok => anly biblio #1 appears
  - use Elasticsearch 5 again
  - check for no search regression

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t