Bug 36678: Index fields with non-filing characters in both versions
authorNick Clemens <nick@bywatersolutions.com>
Tue, 23 Apr 2024 18:57:54 +0000 (18:57 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 May 2024 21:18:19 +0000 (21:18 +0000)
commit185c0363ca5a6e5de23424d178474063c5fe7719
tree74ed319dcfb73718f7a23959aee0a7f6791d14c6
parent1779a713296a4ea8da6b3a37af06d2ba9f47b15c
Bug 36678: Index fields with non-filing characters in both versions

Currently we only remove non-filing characters for sort fields, however, this can make searching difficult.
This patch adds the filing form to the index as well to aid in searching.

To test:
 0 - Setup Koha with Elasticsearch
 1 - Import the sample record on this report: "L'amour de l'art"
 2 - Search for "amour de l'art" - no results
 3 - Apply patch
 4 - Reindex
 5 - Search for "amour de l'art" - result!
 6 - Search for "title:amour de l'art" - result!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7c20263fd0930997a8da70b8798e0ada623ac2bc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 953ad1871cbafc79c25ef6423efef8392bccc21a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch.pm