public Search ( string start, string pageSize ) : List |
||
start | string | Index of where in the total result to return results. |
pageSize | string | Number of results to return. |
return | List |
public static XPathNodeIterator Search(string query, int pageSize, int pageNumber, string site) { GoogleSiteSearch search = new GoogleSiteSearch(query, site); List<GoogleSiteSearchResult> results = search.Search(pageNumber.ToString(), pageSize.ToString()); XmlDocument document = GoogleSiteSearchUtil.GoogleSiteSearchToXmlDocument(search, results); XPathNavigator navigator = document.FirstChild.CreateNavigator(); return navigator.Select("/"); }
public static XPathNodeIterator Search(string query, int pageSize, int pageNumber, string site) { GoogleSiteSearch search = new GoogleSiteSearch(query, site); List <GoogleSiteSearchResult> results = search.Search(pageNumber.ToString(), pageSize.ToString()); XmlDocument document = GoogleSiteSearchUtil.GoogleSiteSearchToXmlDocument(search, results); XPathNavigator navigator = document.FirstChild.CreateNavigator(); return(navigator.Select("/")); }
public void Serach() { GoogleSiteSearch search = new GoogleSiteSearch("UNEP"); List<GoogleSiteSearchResult> results = search.Search("2", "15"); GoogleSiteSearch search2 = new GoogleSiteSearch("UNEP", "www.latincarbon.com"); List<GoogleSiteSearchResult> results2 = search2.Search("1", "20"); XPathNodeIterator iterator = GoogleSiteSearchXsltExtension.Search("UNEP", 10, 1, "www.latincarbon.com"); }