<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>In the code, it says </p>
<p>#define SOLR_HEADER_MAX_SIZE (1024*1024)</p>
<p>and line 620</p>
<p>if (!ctx->truncate_header &&<br />str_len(ctx->cur_value) >= SOLR_HEADER_MAX_SIZE) {<br />/* a large header */</p>
<p><br /></p>
<p>so this is a 1Mo header. This is of course completely wrong.</p>
<p><br /></p>
<p>Maybe this is not the root cause of the errors of fts_solr, but maybe this will help</p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<p><br /></p>
<div id="signature"> </div>
<p><br /></p>
<p id="reply-intro">On 2019-01-02 18:00, Joan Moreau via dovecot wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Another bug appearing today:</p>
<p>Jan 02 09:59:08 indexer-worker(jom@grosjo.net)<6777><MOgFATKLLFwPHAAA0thIag:oLJjJjKLLFx5GgAA0thIag>: Warning:<strong> fts-solr(jom@grosjo.net)</strong>: Mailbox XXXXXX UID=121635<strong> header size is huge, truncating</strong></p>
<p>header of the said email has nothing of "huge"</p>
<div id="signature"> </div>
<p><br /></p>
<p id="reply-intro">On 2019-01-02 15:22, Joan Moreau via dovecot wrote:</p>
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<p>Refinement of the schema.xml (below)</p>
<p><br /></p>
<p>THis however does not solve the "no results" and "Out of range" errors in Dovecot and Solr</p>
<p><br /></p>
<p><?xml version="1.0" encoding="UTF-8"?><br /><schema name="dovecot" version="2.0"><br /><uniqueKey>id</uniqueKey><br /><fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/><br /><fieldType name="gjlong" class="solr.LongPointField" positionIncrementGap="0"/><br /><fieldType name="gjtext" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100"><br /><analyzer type="index"><br /><tokenizer class="solr.StandardTokenizerFactory"/><br /><filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1" preserveOriginal="1"/><br /><filter class="solr.FlattenGraphFilterFactory"/><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><br /></analyzer><br /><analyzer type="query"><br /><tokenizer class="solr.KeywordTokenizerFactory"/><br /></analyzer><br /></fieldType><br /><fieldType name="gjfield" class="solr.TextField" autoGeneratePhraseQueries="true"><br /><analyzer type="index"><br /><tokenizer class="solr.NGramTokenizerFactory" maxGramSize="25" minGramSize="3" /><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><br /></analyzer><br /><analyzer type="query"><br /><tokenizer class="solr.KeywordTokenizerFactory"/><br /></analyzer><br /></fieldType></p>
<p><fieldType name="string" class="solr.StrField"/><br /><field name="_version_" type="string" indexed="true" stored="true"/><br /><field name="bcc" type="string" indexed="false" stored="false"/><br /><field name="body" type="gjtext" indexed="true" stored="false"/><br /><field name="box" type="string" indexed="true" required="true" stored="true"/><br /><field name="cc" type="gjfield" indexed="true" stored="false"/><br /><field name="from" type="gjfield" indexed="true" stored="false"/><br /><field name="hdr" type="string" indexed="false" stored="false"/><br /><field name="id" type="string" indexed="true" required="true" stored="true"/><br /><field name="subject" type="gjtext" indexed="true" stored="false"/><br /><field name="to" type="gjfield" indexed="true" stored="false"/><br /><field name="uid" type="string" indexed="true" required="true" stored="true"/><br /><field name="user" type="string" indexed="true" required="true" stored="true"/><br /></schema></p>
<p><br /></p>
</blockquote>
</blockquote>
</body></html>