Add left join fetch to the search query to minimize the number of SQL queries.