Thanks, but the problem isn't the response, is the request that comes with header Content-Type: text/xml that solr doesn't like.
With header stripping everything goes fine.
Thanks




Il giorno ven 30 nov 2018 alle ore 16:57 Christian Kivalo <ml+dovecot@valo.at> ha scritto:


On November 30, 2018 4:13:40 PM GMT+01:00, Riccardo Bicelli <r.bicelli@gmail.com> wrote:
>Thanks,
>but how? I looked through solr documentation and found anything useful.
See for example this thread where its described how to change the query response writer in solr
http://dovecot.2317879.n4.nabble.com/Solr-7-td61467.html
>For now got it working setting up nginx and strip down the header, but
>I
>think it isn't the proper solution.
>
>Cheers
>
>
>Il giorno ven 30 nov 2018 alle ore 09:48 Aki Tuomi <
>aki.tuomi@open-xchange.com> ha scritto:
>
>>
>> On 28.11.2018 9.52, Riccardo Bicelli wrote:
>> > Hello,
>> > I recently upgraded my solr installation to 6.6.5
>> >
>> > When searching through dovecot solr throws this this error:
>> >
>> > solr Bad contentType for search handler :text/xml
>> >
>> > I'm running dovecot 2.2.10 on CentOS 7.5.
>> >
>> > Regards
>> > Riccardo
>> >
>>
>> Configure your solr to use XML instead of JSON.
>>
>> Aki
>>
>>

--
Christian Kivalo