Fix elasticsearch mapping being ignored