Re: Json update using HttpURLConnection

2011-08-04 Thread Sharath Jagannath
Never mind, It was some stupid bug. Figured it out. Cheers, Sharath On Thu, Aug 4, 2011 at 2:35 PM, Sharath Jagannath wrote: > I am trying to post the json update request using > java.net.HttpURLConnection. > > Parameters I am using: > > url : http://localhost:8983/solr/update/json?commit=true

Json update using HttpURLConnection

2011-08-04 Thread Sharath Jagannath
I am trying to post the json update request using java.net.HttpURLConnection. Parameters I am using: url : http://localhost:8983/solr/update/json?commit=true String data = "[{\"id\" : \"TestDoc7\", \"title\" : \"test 7\"}, {\"id\" : \"TestDoc8\", \"title\" : \"another test 8\"}]";