<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<div dir="auto">
<div dir="auto"><br></div><div dir="auto">Anyone willing to explain those functions ?</div><div dir="auto"><br></div>
<div id="aqm-original" style="color: black;">
<!-- body start -->
<div style="font-size: 9pt; font-family: verdana,geneva,sans-serif" class="aqm-original-body">
<div style="color: black;">
<p style="color: black; font-size: 10pt; font-family: sans-serif; margin: 8pt 0;">On January 5, 2019 14:23:10 Joan Moreau via dovecot <dovecot@dovecot.org> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
<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">
<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>
</blockquote>
</div>
</div>
<!-- body end -->
</div><div dir="auto"><br></div>
</div></body>
</html>