Koha-clms/Koha/SearchEngine/Elasticsearch
Nick Clemens a2b2426de8 Bug 25882: Remove phr indicator from limits when processing
We assume all limits from advanced search to be a phrase and quote them
when doing this we should remove the phrase marker to avoid doulbe quoting

To test:
 1 - Have koha using ES
 2 - Go to advanced search
 3 - Limit by a single itemtype that exists
 4 - Get some results
 5 - Limit by a different itemtype that exists
 6 - Get some results
 7 - Limit by both itemtypes
 8 - Get only the results for the second itemtype
 9 - Enable DumpTemplateVarsIntranet and DumpSearchQueryTemplate
10 - Repeat search
11 - View page source and find 'search_query'
12 - See limit looks like itype:("("BK")" OR "("CR")")
13 - Apply patches
14 - Restart all the things
15 - Repeat search for both itemtypes
16 - Note results now include both types

Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-12 11:46:19 +02:00
..
Browse.pm Bug 24823: Remove unused parameters 2020-05-12 11:43:30 +01:00
Indexer.pm Bug 24823: (QA follow-up) Fix deletion and POD 2020-05-12 11:43:37 +01:00
QueryBuilder.pm Bug 25882: Remove phr indicator from limits when processing 2020-08-12 11:46:19 +02:00
Search.pm Bug 24823: Remove unused parameters 2020-05-12 11:43:30 +01:00