lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenNabble <>
Subject Solr solr.JSONResponseWriter not escaping backslash '\' characters
Date Thu, 23 Jan 2014 14:20:46 GMT

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 should be escaped but aren't :-('

Any ideas? I shouldn't need to escape these values before submitting to the
Solr index but I can't see any other way at the moment...


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message