How to remove escape character from solr indexed field? -


i indexing json data solr field, eg

{"employees":[     {"firstname":"john", "lastname":"doe"},     {"firstname":"anna", "lastname":"smith"},     {"firstname":"peter", "lastname":"jones"} ]} 

but json getting indexed escaped characters, getting json

  "{\"employees\":[\n    {\"firstname\":\"john\", \"lastname\":\"doe\"},\n    {\"firstname\":\"anna\", \"lastname\":\"smith\"},\n    {\"firstname\":\"peter\", \"lastname\":\"jones\"}\n]}" 

is there way index without escaping json or de escaping result while displaying solr end solely ?

this fine storage of json data in solr textfield. if see through admin, see json in escaped format in ui, if query , decode json, return correct object in language using. python example.

my_json_field =  json_string // read solr using api calls or module pysolr my_obj = json.loads(my_json_field) 

Comments