Changing elasticsearch code for profiles.