add elasticsearch relation