Back-End Engineer (Java Spring Boot): optimize search functionality