Try our conversational search powered by Generative AI!

Google Search Integration

Vote:
 

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

#20743
Jun 10, 2008 15:39
Vote:
 
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; }
#20749
Jun 10, 2008 21:04
Vote:
 

i am still confused with it, please give me some direction for Google search - EPiServer CMS integration.

#20780
Jun 12, 2008 7:29
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.