update README of search function to use returning callback function