docs: added an example for the function search