Skip to content

Commit

Permalink
fts-flatcurve: Add recommendation that maximum email-address token si…
Browse files Browse the repository at this point in the history
…ze should be limited

Maximum email-address token size is larger than Xapian term size limit,
so at a minimum this prevents truncation deep inside flatcurve code
without admin knowledge.
  • Loading branch information
slusarz authored and sirainen committed Aug 14, 2024
1 parent 3536fda commit 6b2305e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/core/plugins/fts_flatcurve.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ mail_plugins = $mail_plugins fts fts_flatcurve
plugin {
fts = flatcurve
# Maximum email-address token size (254) is larger than Xapian can handle,
# so we will need to truncate at some level. It is doubtful that large
# email-addresses are useful for search purposes, so this optional config
# will prevent these large addresses (more than 100 bytes) from being
# stored.
#fts_tokenizers = generic email-address
#fts_tokenizer_email_address = maxlen=100
# All of these are optional, and indicate the default values.
# They are listed here for documentation purposes; most people should
# not need to define/override in their config.
Expand Down

0 comments on commit 6b2305e

Please sign in to comment.