Fix elasticsearch schema.