<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>Hi,</p>
<p>This is the best I can do for having a <strong>schema.xml</strong> matching the needs of an email user. Use case on Solr 7.5.0</p>
<p>(note : this does not solve any of the bugs previously mentionned, but at least, the logic of Solr is back on track)</p>
<p>-------</p>
<p><?xml version="1.0" encoding="UTF-8"?><br /><schema name="dovecot" version="2.0"><br /><uniqueKey>id</uniqueKey><br /><fieldType name="gjtext" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100"><br /><analyzer type="index"><br /><tokenizer class="solr.ClassicTokenizerFactory"/><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.TrimFilterFactory"/><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><br /></analyzer><br /><analyzer type="query"><br /><tokenizer class="solr.KeywordTokenizerFactory"/><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.TrimFilterFactory"/><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><br /></analyzer><br /></fieldType><br /><fieldType name="gjfield" class="solr.TextField" autoGeneratePhraseQueries="true"><br /><analyzer type="index"><br /><tokenizer class="solr.ClassicTokenizerFactory"/><br /><filter class="solr.NGramFilterFactory" minGramSize="3" maxGramSize="25"/><br /><filter class="solr.TrimFilterFactory"/><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><br /></analyzer><br /><analyzer type="query"><br /><tokenizer class="solr.KeywordTokenizerFactory"/><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.TrimFilterFactory"/><br /><filter class="solr.RemoveDuplicatesTokenFilterFactory"/><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>
</body></html>