Fix elasticsearch distance