Reputation: 314
I'm using the Solr4.3 example schema. I've posted other json docs but these give me problems. It errors if there is more than one value in the collection.
Uri :<code>http://localhost:8983/solr/update?commit=true</code>
Workaround?
//json
[ { "id": "myId", "text": [ { "text": 1 }, { "text": "2" } ] } ]
Upvotes: 0
Views: 1500
Reputation: 5535
I hit the same error message. Actually the error message was misplaced. The underlying real error was the two of the required fields as per schema.xml in solr configuration were missing in the json payload.
An error message of the kind "required parameters are missing in the document" would have been more helpful here. You might want to check if some required fields are missing in the json payload.
Upvotes: 0
Reputation: 1
you need to use set to specify the updating value
id:'your id','text':{'set':'new text description'},
and the copyfield destination should be multivalued. regards, Omer Aslam
Upvotes: 0