[ES] More accurate as_indexed_json
fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/349
It makes database indexer stable to corrupted data in database.
/cc @jnijhof
fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/349
It makes database indexer stable to corrupted data in database.
/cc @jnijhof