Search code examples
pythonrestsolrsunburnt

Solr - Error adding document with multivalued field


Schema:

<field name="tags" type="string_ci" indexed="true" stored="true" multiValued="true" />

Document:

document = {
    "id":123, 
    "title":"this is title", 
    "description":"this is desc", 
    "tags":["beach", "luxury", "RTW"]
}

Error:

<title>Error 400 ERROR: [doc=20] Error adding field \'tags\'=\'[beach, luxury, RTW]\'</title>

I tried REST, python module solrpy & sunburnt but gives the same error.


Solution

  • Problem solved! It seems something was wrong with my solr schema.