Switch over to using/generating JSON docs for elasticsearch.