How to get associations in the search API endpoints

please create an issue with this.