<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Solr 7 returns JSON by default but fts_solr requires XML.</p>
<p>Would be good to have wt=xml added to the query to force it to
xml all the time, this would prevent errors if solr has not had
xml set as default for index.<br>
</p>
<p><br>
</p>
<p>Dovecot 2.2.36<br>
Centos 6</p>
<p><b>Doveadm Request:</b></p>
<p>doveadm search -u <a class="moz-txt-link-abbreviated" href="mailto:caroline@covermg.com">caroline@covermg.com</a> TEXT smith<br>
</p>
<p>doveadm(<a class="moz-txt-link-abbreviated" href="mailto:caroline@covermg.com">caroline@covermg.com</a>): Error: fts_solr: Invalid XML input
at 1:0: not well-formed (invalid token) (near: {<br>
"responseHeader":{<br>
"status":0,<br>
"QTime":0,<br>
"params":{<br>
"q":"{!lucene q.op=AND}(hdr:smith OR body:smith)",<br>
)<br>
doveadm(<a class="moz-txt-link-abbreviated" href="mailto:caroline@covermg.com">caroline@covermg.com</a>): Error: fts_solr: Invalid XML input
at 1:0: not well-formed (invalid token) (near: {<br>
"responseHeader":{<br>
"status":0,<br>
"QTime":0,<br>
"params":{<br>
"q":"box:1065b22d6b02185bd40f0000d09efc50 AND user:ca)<br>
<br>
</p>
<p><br>
</p>
<p><b>TCP Dump</b><br>
</p>
<p>Content-Type: application/json;charset=utf-8<br>
Content-Length: 329<br>
<br>
{<br>
"responseHeader":{<br>
"status":0,<br>
"QTime":1,<br>
"params":{<br>
"q":"{!lucene q.op=AND}from:smith",<br>
"fl":"uid,score",<br>
"sort":"uid asc",<br>
"fq":"+box:b571472154d7035b4e250000d09efc50
+user:caroline@covermg.com",<br>
"rows":"69235"}},<br>
"response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]<br>
}}<br>
<br>
</p>
</body>
</html>