World is now on Opti ID! Learn more
AI OnAI Off
World is now on Opti ID! Learn more
Try to use this.
public static XmlDocument GetResult(string query, int startCount, string language, string collection, string frontEnd) { XmlDocument _returnValue = new XmlDocument(); string _searchEngineUrl = "http://yoursearchurl.com"; string _filter = string.Empty; if (language == "EN") _filter = "&lr=lang_en"; string url = string.Format("{0}/search?q={1}&site={2}&client={3}&output=xml_no_dtd&access=p&ie=UTF-8&oe=UTF-8&start={4}{5}", _searchEngineUrl, HttpUtility.UrlEncode(query), collection, frontEnd, startCount, _filter); // Setup a webrequest HttpWebRequest _request = WebRequest.Create(url) as HttpWebRequest; if (_request != null) { _request.CookieContainer = new CookieContainer(); _request.UserAgent = "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)"; WebResponse _response = _request.GetResponse(); StreamReader _reader = new StreamReader(_response.GetResponseStream()); _returnValue.LoadXml(_reader.ReadToEnd()); _reader.Close(); _response.Close(); } return _returnValue; }
i am still confused with it, please give me some direction for Google search - EPiServer CMS integration.
I downloaded the zip file from the address mentioned below.
http://r.ep.se/projects/GSA_Search/
This package is for EPiServer 4.6, can any one provide some tips on how to start with Google search implementation in EPiServer CMS.
Do provide some links if possible.
Thanks