[Koha-bugs] [Bug 21357] Filter elisions from index and search terms in Elasticsearch
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 30 16:10:40 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21357
Julian Maurice <julian.maurice at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |julian.maurice at biblibre.com
--- Comment #32 from Julian Maurice <julian.maurice at biblibre.com> ---
I think that enabling french analyzer (or parts of french analyzer) by default
is not the best solution. Sure it will work with french catalogs, but what will
happen when one want to add support for another language (or, for the weird
people above, 350 other languages! :)) ?
I think a better solution is to use multi-fields with multiple analyzers, as
suggested here :
https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html#_multi_fields_with_multiple_analyzers
The idea is to have multiple "subfields" for each field, one subfield per
language. For instance:
- `title` will be language agnostic
- `title.lang_en` will use an english analyzer
- `title.lang_fr` will use a french analyzer
When searching, Koha can search in all these fields, and the query will be
analyzed by all analyzers.
I've been testing this idea this week, and I made a small patch that I will
submit here. It is only a proof of concept for now, but I hope it will help
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list