<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Arial,Helvetica,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi,<br /><br />I am finally trying to use an fts engine with dovecot. My version is 2.3.7.2 under Ubuntu 20.04.<br /><br />I installed solr 7.7.3 and then 8.6.0 to see if this was a version-related error. I copied the schema from 7.7.0 as many people said this was fine.<br /><br />I get the following error when trying to reindex a user's mailbox:<br /><br /><span style="font-family: 'courier new', courier, monospace;">doveadm(<a href="mailto:francis@francisaugusto.com">francis@francisaugusto.com</a>): Error: fts_solr: Indexing failed: 400 Bad Request</span><br /><span style="font-family: 'courier new', courier, monospace;">doveadm(<a href="mailto:francis@francisaugusto.com">francis@francisaugusto.com</a>): Error: Mailbox INBOX: Transaction commit failed: FTS transaction commit failed: backend deinit</span><br /><span style="font-family: 'courier new', courier, monospace;">doveadm(<a href="mailto:francis@francisaugusto.com">francis@francisaugusto.com</a>): Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb: Disconnected: Connection closed (fd=10)</span><br /><br />On Solr I get this error:<br /><br /><span style="font-family: 'courier new', courier, monospace;">org.apache.solr.common.SolrException: Exception writing document id <a href="mailto:210/9fd7941e8297d25d91600000c3fdd3da/francis@francisaugusto.com">210/9fd7941e8297d25d91600000c3fdd3da/francis@francisaugusto.com</a> to the index; possible analysis error: cannot change field "box" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS</span><br /><span style="font-family: 'courier new', courier, monospace;">    at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:246)</span><br /><br />Parallel to this, I got some log messages on Solr before attempting to reindex the user (sorry for the garbadged text:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">
<table class="has-data" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="time">Time (<span class="ng-binding">Local</span>)</th>
<th class="level">Level</th>
<th class="core">Core</th>
<th class="logger">Logger</th>
<th class="message">Message</th>
</tr>
</thead>
<tbody class="ng-scope">
<tr class=" level-warn">
<td class="span"><a><span class="ng-binding">7/21/2020, 6:38:47 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">WARN false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.core.SolrResourceLoader">SolrResourceLoader</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">Solr loaded a deprecated plugin/analysis class [solr.TrieLongField]. Please consult documentation how to replace it accordingly.</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class=" level-warn">
<td class="span"><a><span class="ng-binding">7/21/2020, 6:38:47 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">WARN false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.core.SolrResourceLoader">SolrResourceLoader</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class=" level-warn">
<td class="span"><a><span class="ng-binding">7/21/2020, 6:38:47 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">WARN false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.core.SolrResourceLoader">SolrResourceLoader</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">Solr loaded a deprecated plugin/analysis class [solr.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:46 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.handler.RequestHandlerBase">RequestHandlerBase</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">java.lang.IllegalStateException: Type mismatch: uid was indexed as SORTED_NUMERIC</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:46 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.servlet.HttpSolrCall">HttpSolrCall</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">null:java.lang.IllegalStateException: Type mismatch: uid was indexed as SORTED_NUMERIC</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:49 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.handler.RequestHandlerBase">RequestHandlerBase</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">java.lang.IllegalStateException: Type mismatch: uid was indexed as SORTED_NUMERIC</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:49 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.servlet.HttpSolrCall">HttpSolrCall</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">null:java.lang.IllegalStateException: Type mismatch: uid was indexed as SORTED_NUMERIC</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:56 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.handler.RequestHandlerBase">RequestHandlerBase</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">java.lang.IllegalStateException: Type mismatch: uid was indexed as SORTED_NUMERIC</span></a></td>
</tr>
</tbody>
<tbody class="ng-scope">
<tr class="has-trace level-error">
<td class="span"><a><span class="ng-binding">7/22/2020, 6:43:56 PM</span></a></td>
<td class="level span"><a><span class="ng-binding">ERROR false</span></a></td>
<td class="span"><a><span class="ng-binding">x:dovecot</span></a></td>
<td class="span"><a><span><abbr class="ng-binding" title="org.apache.solr.servlet.HttpSolrCall">HttpSolrCall</abbr></span></a></td>
<td class="message span"><a><span class="ng-binding">null:java.lang.IllegalSta</span></a></td>
</tr>
</tbody>
</table>
<br />Could anyone point me the right direction to make this work?</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Best,<br /><br />
<div id="signature"> </div>
</div>
</body></html>