I'm looking at the wiki article about updating the index with json and the
format doesn't seem well formed to me.
http://wiki.apache.org/solr/UpdateJSON

Technically, yes, it's valid json, but most libraries treat the json objects
as maps, and with multiple "add" elements as the keys, you cannot properly
deserialize.

As an example, try putting this into jsonlint.com, and notice it trims off
one of the docs:
{
 "add": {"doc": {"id" : "TestDoc1", "title" : "test1"} },
 "add": {"doc": {"id" : "TestDoc2", "title" : "another test"} }
}

Is there something I'm just not seeing? Should we consider cleaning up this
format, possibly using some json arrays so that it makes more sense from a
json perspective?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Update-JSON-Invalid-tp3088963p3088963.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to