Solr solr.JSONResponseWriter not escaping backslash '\' characters

2014-01-23 Thread stevenNabble
Hello, I am finding that if any fields in a document returned by a Solr query (*wt=json* to get a JSON response) contain backslash *'\'* characters, they are not being escaped (to make then valid JSON). e.g. Solr returns this: 'A quoted value *\"XXX\"*, plus these are backslashes *\r\n* which sho

Re: Solr solr.JSONResponseWriter not escaping backslash '\' characters

2014-01-23 Thread stevenNabble
Hi Chris, thanks for the fast response. I'll try to be more specific about the problem I am having. # cat tmp.xml 9553522 quote: (") backslash: (\) backslash-quote: (\") newline: ( ) backslash-n: (\n) # curl 'http://localhost:8983/solr/collec

Re: Solr solr.JSONResponseWriter not escaping backslash '\' characters

2014-01-24 Thread stevenNabble
Hello, thanks to all for the help :-) we have managed to narrow it down what is exactly going wrong. My initial thinking on the backslashes within field values being the problem were incorrect. The source of the problem is in-fact submitting a document with a blank field value. The JSON returned