fts.conf.j2 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% if SKIP_FTS|lower in ['n', 'no'] %}
  2. plugin {
  3. fts_autoindex = yes
  4. fts_autoindex_exclude = \Junk
  5. fts_autoindex_exclude2 = \Trash
  6. # Tweak this setting if you only want to ensure big and frequent folders are indexed, not all.
  7. fts_autoindex_max_recent_msgs = 20
  8. fts = flatcurve
  9. # Maximum term length can be set via the 'maxlen' argument (maxlen is
  10. # specified in bytes, not number of UTF-8 characters)
  11. fts_tokenizer_email_address = maxlen=100
  12. fts_tokenizer_generic = algorithm=simple maxlen=30
  13. # These are not flatcurve settings, but required for Dovecot FTS. See
  14. # Dovecot FTS Configuration link above for further information.
  15. fts_languages = en es de
  16. fts_tokenizers = generic email-address
  17. # OPTIONAL: Recommended default FTS core configuration
  18. fts_filters = normalizer-icu snowball stopwords
  19. fts_filters_en = lowercase snowball english-possessive stopwords
  20. fts_index_timeout = 300s
  21. }
  22. service indexer-worker {
  23. # Max amount of simultaniously running indexer jobs.
  24. process_limit = {{ FTS_PROCS }}
  25. # Max amount of RAM used by EACH indexer process.
  26. vsz_limit = {{ FTS_HEAP }} MB
  27. }
  28. {% endif %}