many to one function example - Search