FTS Index based on UserDB preference

Scott Q. qmail at top-consulting.net
Tue Sep 22 16:24:37 EEST 2020


Thank you.

Would it be complicated to extend this option and create a new one
called 'fts_skip_body' which in turn would exclude the body of the
e-mail from being indexed ?


I imagine it would have to propagate all the way
to plugins/fts/fts-build-mail.c  and set skip_body to true.



On Tuesday, 22/09/2020 at 02:33 Aki Tuomi wrote:


On 18.9.2020 17.45, Scott Q. wrote:
> Does anyone know if it's possible to do FTS Index based on a userdb
> preference ? Basically if the preference is 'on' , dovecot goes
ahead
> with the fts indexing for that particular user.
>
> I'm guessing right now it's not possible but is there anyone that
> could envision writing such a patch ? If so, can you contact me
off-list ?


Totally possible, just return from your userdb `fts=solr` (e.g.) to
turn
on fts processing for some user.

If you are using passwd-file, you need to use userdb_fts=solr.

Aki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20200922/8115b9c2/attachment.html>


More information about the dovecot mailing list