It’s the _schema_ that’s not mutable. Which implies you have field guessing 
turned _off_

I’d take a look at the solr log, the error might be more informative. But at a 
guess, you
need to define the fields you’re importing, namely id, name, surname, gender, 
eyeColor and hairColor
in your schema.

> On May 20, 2020, at 1:46 PM, Vincenzo D'Amore <v.dam...@gmail.com> wrote:
> 
> 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