I changed as per your feedback. Added quotes and escaped them before id and
name.
Still not able to insert.

data: "<add><doc><field name=\"id\">299990</field><field
name=\"name\">trailblazers</field></doc></add>",

The tomcat log says bad request. 
192.168.11.88 - - [01/Nov/2012:17:10:35 +0530] "OPTIONS
/solr/update?commit=true HTTP/1.1" 400 1052

In google chrome there are 2 errors. 1st one says Bad request, The 2nd one
is Access-Control-Allow-Origin error.

Please let me know if it is possible to put a cros filter to allow access. I
tried to use below filter on tomcat
http://software.dzhuvinov.com/cors-filter-installation.html but it's not
working.






--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-indexing-using-jquery-AJAX-tp4017029p4017499.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to