Hi all,

I'm trying to import a csv file in solr

id,name,surname,gender,eyeColor,hairColor
1,pippo,pluto,male,brown,brown

I'm using this command

curl '
http://localhost:8983/solr/videoid/update?commit=true&header=true&fieldnames=id,name,surname,gender,eyeColor,hairColor&separator=,'
-H "Content-Type: application/csv" --data-binary @test.csv

But receiving the following error:

{
  "responseHeader":{
    "status":400,
    "QTime":32},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"This IndexSchema is not mutable.",
    "code":400}}

Do you know why the Solr index should be mutable?



-- 
Vincenzo D'Amore

Reply via email to