<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 9pt; font-family: Verdana,Geneva,sans-serif'>
<p>Thank Stephan</p>
<p>I basically need to know the role/description of each of the functions of the fts_backend:</p>
<p><br /></p>
<p>struct fts_backend fts_backend_xapian = {<br />.name = "xapian",<br />.flags = FTS_BACKEND_FLAG_NORMALIZE_INPUT,<strong> -> what other flags ?</strong></p>
<p>{<br />fts_backend_xapian_alloc,<br />fts_backend_xapian_init,<br />fts_backend_xapian_deinit,<br />fts_backend_xapian_get_last_uid,<br />fts_backend_xapian_update_init,<br />fts_backend_xapian_update_deinit,<br />fts_backend_xapian_update_set_mailbox,<br />fts_backend_xapian_update_expunge,<br />fts_backend_xapian_update_set_build_key,<br />fts_backend_xapian_update_unset_build_key,<br />fts_backend_xapian_update_build_more,<br />fts_backend_xapian_refresh,<br />fts_backend_xapian_rescan,<br />fts_backend_xapian_optimize,<br />fts_backend_default_can_lookup,<br />fts_backend_xapian_lookup,<br />fts_backend_xapian_lookup_multi,<br />fts_backend_xapian_lookup_done<br />}<br />};</p>
<p><br /></p>
<div id="signature"> </div>
<p>THank you </p>
<p id="reply-intro">On 2019-01-05 08:49, Stephan Bosch wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><br /><span style="white-space: nowrap;">Op 04/01/2019 om 11:17 schreef Joan Moreau via dovecot:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Why not, but please guide me about the core structure (mandatory funcitons, etc..) of a typical Dovecot FTS plugin<br /><br /></blockquote>
The Dovecot API documentation is not exhaustive everywhere, but the basics are documented. The remaining questions can be answered by looking at examples found in similar plugins or the relevant API sources.<br /><br /><span style="white-space: nowrap;">I know of one FTS plugin not written by Dovecot developers:</span><br /><br /><span style="white-space: nowrap;"><a href="https://github.com/atkinsj/fts-elasticsearch" target="_blank" rel="noopener noreferrer">https://github.com/atkinsj/fts-elasticsearch</a></span><br /><br />If you really wish to do something like this, just go ahead. It will not be a small effort though. As soon as you have concrete questions, we can help you (don't expect rapid responses though).<br /><br /><span style="white-space: nowrap;">Regards,</span><br /><br /><span style="white-space: nowrap;">Stephan.</span><br /><br /><br /><br /></div>
</blockquote>
</body></html>