<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>here my latest schema.xml (remove the "long" type hich seems to be very deprecated in 7.x)</p>
<p><?xml version="1.0" encoding="UTF-8"?><br /><schema name="dovecot" version="2.0"><br /><uniqueKey>id</uniqueKey><br /><types><br /><fieldType name="string" class="solr.StrField" /><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.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/><br /><filter class="solr.WordDelimiterGraphFilterFactory" generateWordParts="1" generateNumberParts="1" splitOnCaseChange="1" splitOnNumerics="1" catenateWords="1" catenateNumbers="1" catenateAll="1"/><br /><filter class="solr.FlattenGraphFilterFactory"/> <!-- required on index analyzers after graph filters --><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.NGramFilterFactory" minGramSize="3" maxGramSize="15" /><br /><filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/><br /><filter class="solr.PorterStemFilterFactory"/><br /></analyzer><br /><analyzer type="query"><br /><tokenizer class="solr.StandardTokenizerFactory"/><br /><filter class="solr.SynonymGraphFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/><br /><filter class="solr.FlattenGraphFilterFactory"/> <!-- required on index analyzers after graph filters --><br /><filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/><br /><filter class="solr.WordDelimiterGraphFilterFactory" generateWordParts="1" generateNumberParts="1" splitOnCaseChange="1" splitOnNumerics="1" catenateWords="1" catenateNumbers="1" catenateAll="1"/><br /><filter class="solr.LowerCaseFilterFactory"/><br /><filter class="solr.NGramFilterFactory" minGramSize="3" maxGramSize="15" /><br /><filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/><br /><filter class="solr.PorterStemFilterFactory"/><br /></analyzer><br /></fieldType><br /></types><br /><fields><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="hdr" type="gjtext" indexed="false" stored="false"/><br /><field name="cc" type="gjtext" indexed="true" stored="false"/><br /><field name="from" type="gjtext" indexed="true" 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="gjtext" 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 /></fields><br /></schema></p>
<p><br /></p>
<div id="signature"> </div>
<p><br /></p>
<p id="reply-intro">On 2018-12-15 20:54, Joan Moreau wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="auto">
<div dir="auto"> </div>
<div dir="auto">Daniel,</div>
<div dir="auto"> </div>
<div dir="auto">I have done that so any times (deleteing the data folders, recreating the instance, restarting etc...)</div>
<div dir="auto"> </div>
<div dir="auto">But this is really not the issue</div>
<div dir="auto"> </div>
<div dir="auto">The issue is</div>
<div dir="auto">1 - fts_solr reports errors in the log file (this is a pure dovecot issue) : how to have much more details on what fts_solr sends to Slor server and what does it returns ?</div>
<div dir="auto">2 - Solr returns properly for a few hours, then starts crashing or responding non-sense after some time </div>
<div dir="auto"> </div>
<div dir="auto"> </div>
<div dir="auto">Additionally, is there a doc of fts-squat in order to adjust the code to new releases of dovect ?</div>
<div dir="auto"> </div>
<div dir="auto"> </div>
<div id="aqm-original" style="color: black;">
<div class="aqm-original-body">
<div style="color: black;">
<p style="color: black; font-size: 10pt; font-family: sans-serif; margin: 8pt 0;">On December 12, 2018 4:44:10 PM Daniel Miller via dovecot <dovecot@dovecot.org> wrote:</p>
<blockquote class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">On 12/11/2018 4:46 AM, Joan Moreau via dovecot wrote:<br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p>I shared the errors already so many times (check this mailinling for "solr" in teh title)</p>
<p>Contrary to what you say, with SOlr 7.5 and Dovecot git,  I had to remove the "managed-schema" to make solr respond a bit properly. It relies on schema.xml</p>
<p>In order to create the instance, no, it copies  the default config in the dovecot instance.</p>
</blockquote>
<p>I'm not a Solr expert by any means but I believe you are incorrect. </p>
<p>As of Solr 5.x the managed-schema file is the primary method for configuration.  The method I detailed previously for setting up a config helps automate creating new Solr instances - but as I stated you can either setup a Solr template and then create the instance from that or create an instance using the default template and then adjust it.</p>
<p>The part that you *must* do after creating from the default template is stop the server, delete the entire "<prefix>/solr/dovecot/data" folder, then install the correct managed-schema file, then restart the server.  The server will not function with mismatched schema/data.</p>
<p>If you'll try that - explicitly "rm -rf <prefix>/solr/dovecot/data", copy the managed-schema file into the conf folder, and restart - things will either work or there's something else that needs correction.</p>
--<br />Daniel</blockquote>
</div>
</div>
</div>
<div dir="auto"> </div>
</div>
</blockquote>
</body></html>