[Koha-bugs] [Bug 19565] Fix regular expression in _truncate_terms so field names are not split up

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 2 15:53:23 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19565

--- Comment #1 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 68893
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68893&action=edit
Bug 19565: Fix regular expression in _truncate_terms so field names are not
split up

The regular expression used for tokenizing search string does not allow for
field names containing "." or "-". Fix regular expression to allow for field
names containing "." or "-".

Test plan:
1. Make sure Elasticsearch is used as default search engine.
2. Select "Search the catalog" in the staff client front page.
3. Search for Control-number.raw="<control number>" where <control
number> is an existing control number. (The quotes around are value are needed
to prevent
Koha from appending "*" to control number).
4. The search should not yield any results.
5. Apply patch.
6. Search again using the same condition.
7. The biblio with the control number used in the search should appear as a
match.
8. Search for Control-number="<control number>".
9. The biblio with the control number used in the search should appear as a
match.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list