finish product search function