Hi all,
we have a crawler built on our own based on Solarium-PHP which ingests Solr. Since I have upgraded from 9.6.1 to 9.8.0, I see errors in the log of the crawler. It tells me that Solr complains that the field "title" is missing. Acutally, it is part of the request, but it's just empty. This is a snippet of the request body (for this to be output, I have inserted a var_dump() in an appropriate place of Solarium-PHP): Content-Disposition: form-data; name="literal.publishDate" Content-Type: text/plain;charset=UTF-8 2023-01-12T10:25:06Z --00000000000002800000000000000000 Content-Disposition: form-data; name="literal.title" Content-Type: text/plain;charset=UTF-8 --00000000000002800000000000000000 Content-Disposition: form-data; name="literal.number" And this is the response: Error indexing document 14935: wp-content/uploads/loremipsum.pdf: Solr HTTP error: OK (400) { "responseHeader":{ "status":400, "QTime":121 }, "error":{ "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"], "msg":"[doc=141396] missing required field: title", "code":400 } } I cannot fix the PDF file having no title (for various non-technical reasons), nevertheless it was working fine until before the upgrade. The schema was created with this JSON data, especially its title field: { /* something left out here */ { "name": "title", "type": "text_general", "stored": true, "indexed": true, "multiValued": false, "required": true }, /* something left out here */ } The document is not being indexed. How can I fix this? Is there probably something in the schema (JSON data) I have to change? Or is it better to replace empty titles with some constant non-empty string (this can be done in the crawler)? I have noticed that in the documentation regarding the field option "required", it says: Instructs Solr to reject any attempts to add a document which does not have a value for this field. This property defaults to false. This is ambiguous for me. What is meant with "does not have a value?" Well, the value is present but it is an empty string. Kind regards, Mag.phil. Robert Ehrenleitner, BEng. -- [cid:880112d6-7211-43dd-98f7-8cb2daea9baf] Mag.phil. Robert Ehrenleitner, BEng. Web-Developer IT-Services | Application & Digitalization Services Hellbrunner Straße 34 | 5020 Salzburg | Austria Tel.: +43/(0)662/8044 - 6778 www.plus.ac.at<http://www.plus.ac.at>