Solr while trying to parse collection: error parsing JSON field value. Unexp ected OBJECT_START
I am using the Solr4.3 example schema. I have posted other json docs but this creates problems. These are errors if the collection contains more than one value.
Uri :<code>http://localhost:8983/solr/update?commit=true</code>
Workaround?
// JSON
[{"id": "myId", "text": [{"text": 1}, {"text": "2"}]}]
0
source to share
3 answers
I am getting the same error message. In fact, the error message was misplaced. The main real mistake was that the two required fields as per schema.xml in the solr config were missing from the json payload.
An error message like "required parameters are missing in document" would be more helpful here. You might want to check if some required fields are missing from the json payload.
0
source to share