flatcurve-fts: limit tokenizers for email adresses

This commit is contained in:
DerLinkman 2024-08-14 10:02:59 +02:00
parent a6f71faf46
commit e34afd3fdd
No known key found for this signature in database
GPG Key ID: AA4A82514748F5A9

View File

@ -257,10 +257,14 @@ plugin {
fts_autoindex_exclude2 = \Trash
fts = flatcurve
# Maximum term length can be set via the 'maxlen' argument (maxlen is
# specified in bytes, not number of UTF-8 characters)
fts_tokenizer_email_address = maxlen=100
fts_tokenizer_generic = algorithm=simple maxlen=30
# These are not flatcurve settings, but required for Dovecot FTS. See
# Dovecot FTS Configuration link above for further information.
fts_languages = en es de
fts_tokenizer_generic = algorithm=simple
fts_tokenizers = generic email-address
# OPTIONAL: Recommended default FTS core configuration