Koha-clms/t/Koha/SearchEngine
Ere Maijala 0d9a42b492 Bug 21084: Fix automatic truncation in authority search
- Makes token splitting work like in biblio search
- Only adds right hand truncation since that's what Zebra also does
- Only adds truncation if the token is not a phrase and ends in a word character
- Adds tests to existing and new QueryBuilder functions

Test plan:

1. Create an authority record for "Duck, Donald"
2. Try contains type authority searches with the following terms and make sure they find the record:
Duck, Donald
donald duck
don duck
"Duck, Donald"
3. Make sure the following search works but does not find anything:
"Duck, Don"

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-18 20:18:31 +00:00
..
Elasticsearch Bug 21084: Fix automatic truncation in authority search 2019-01-18 20:18:31 +00:00
Zebra Bug 16660: (followup) Unit tests 2017-10-27 14:09:02 -03:00
Elasticsearch.t Bug 20244: Add alt script indexing and fix sort field indexing 2018-11-16 11:27:22 +00:00