Make stores work with elasticsearch