[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 Apr 20 16:23:12 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21357
--- Comment #74 from Janusz Kaczmarek <januszop at gmail.com> ---
... I mean the original apostrophe filter:
https://www.elastic.co/guide/en/elasticsearch/reference/8.7/analysis-apostrophe-tokenfilter.html
I.e. to have:
analyzer_standard:
tokenizer: icu_tokenizer
filter:
- icu_folding
- elision
- apostrophe
So:
GET koha_<instance>_biblios/_analyze
{
"analyzer": "analyzer_standard",
"text": "Nell'aria voce di Sant'Antonio e Shakespeare's"
}
would give: aria voce di antonio e shakespeare
which is quite nice.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list