Modifying endpoint for search