Bug972037 ElasticSearch error because of destructive JSON transform

IN progress