creating searchResult generator