Hi folks,
I use python to index documents to Solr 9.5.0. I prepared a schema.xml and
inserted a row into solrconfig.xml:
<schemaFactory class="ClassicIndexSchemaFactory"/>

After this, I tried cbor-based and json-based approaches but none of them
worked. The number of documents I tried to index in one request was 15000
but the document size is small: 0.5kb.
The request what I sent:
response = requests.post("
http://localhost:8983/solr/books/update/json?commit=true";, , data=json_data,
headers={"Content-Type": "application/json"} )
if response.status_code == 200:
print("POST request sent successfully!")
print("Response Body:", response.text)
else:
print("Unexpected response status:", response.status_code)

Sometimes it runs and return with 200 status code, sometimes it returns
with 400. When it returns error the log file says:
2024-03-12 10:22:35.976 ERROR (qtp973843173-43-localhost-84) [c: s: r:
x:books t:localhost-84] o.a.s.h.RequestHandlerBase Client exception =>
org.apache.solr.common.SolrException: This IndexSchema is not mutable.

Thanks in advance,

Roland

Reply via email to