Incorrect value sent to solr
Łukasz Szczepański
l.szczepanski at webd.pl
Sat Apr 3 21:12:53 EEST 2021
I already have uid as long in schema:
<field name="id" type="string" indexed="true" required="true"
stored="true"/>
<field name="uid" type="long" indexed="true" required="true"
stored="true"/>
<field name="box" type="string" indexed="true" required="true"
stored="true"/>
<field name="user" type="string" indexed="true" required="true"
stored="true"/>
<field name="hdr" type="text" indexed="true" stored="false"/>
<field name="body" type="text" indexed="true" stored="false"/>
<field name="from" type="text" indexed="true" stored="false"/>
<field name="to" type="text" indexed="true" stored="false"/>
<field name="cc" type="text" indexed="true" stored="false"/>
<field name="bcc" type="text" indexed="true" stored="false"/>
<field name="subject" type="text" indexed="true" stored="false"/>
Rows isn't part of manage-schema for solr collection its build in common
query parameters in solr, and type of this field cannot be changed. It
controls the number of returned results (by default 10).
I still think that an issue on dovecot side, but I was also wrong, this
parameter is important and have to be sent. Dovecot should send a count
of messages in mailbox (or imap folder) not the highest uid in folder.
W dniu 2021-04-03 15:48, Shawn Heisey napisał(a):
> On 4/2/2021 7:11 AM, Łukasz Szczepański wrote:
>> On a Solr side I got an error:
>> java.lang.NumberFormatException: For input string: "2206267083"
>> NumberFormat expect an int which max value is 2147483647.
>>
>> Quick test reviles that rows parameter isn't required for correct
>> response from solr.
>> I think that dovecot should check if the value of rows is a correct
>> int, and if not, just skip this argument.
>
> That error comes from Solr. You can fix it on the Solr side by
> changing the type on the field from int to long in the schema.
>
> When I look at the provided example schema for fts_solr, I do not even
> see a definition for an "int" type, so if you have one, it's wrong.
>
> https://raw.githubusercontent.com/dovecot/core/master/doc/solr-schema-7.7.0.xml
>
> Thanks,
> Shawn
More information about the dovecot
mailing list