{"id":93,"date":"2008-09-16T14:54:26","date_gmt":"2008-09-16T14:54:26","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=93"},"modified":"2008-09-19T14:50:49","modified_gmt":"2008-09-19T14:50:49","slug":"integrating-search-server-express-into-wss-30-team-site","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/","title":{"rendered":"Integrating Search Server Express into WSS 3.0 Team Site."},"content":{"rendered":"<p>Just recently we installed Search Server Express for a client on their WSS infrastructure. It&#8217;s working quite nicely having a much more granular control than the standard WSS search functions, but my main gripe is the lack of SmallSearchServer control to replace the existing WSS one.<\/p>\n<p>Most users would rather click into a text box at the top of the page, and enter their search query than click off to another search url and perform the action there. So, we need to remove the WSS search input and replace it with our own.<\/p>\n<p>Now, thanks to Microsoft using Delgate controls on the master page, this is nice and simple. All we need is a feature consisting of the standard Feature.Xml and Elements.Xml and the new controltemplate, in this case BSSearchArea.ascx.<\/p>\n<p>So far so good. I&#8217;ve customized the existing SearchArea.ascx taken from 12\/TEMPLATES\/CONTROLTEMPLATES and i&#8217;ve removed all mention of the scope. My elements file has been configured to override the existing control using:-<\/p>\n<pre lang=\"XML\">  <Control\r\n\t\tId=\"SmallSearchInputBox\"\r\n\t\tControlSrc=\"~\/_controltemplates\/new.search\/BSSearchArea.ascx\"\r\n    Sequence=\"10\"\r\n\t\/><\/pre>\n<p>And my control is appearing as expected. but my problem now is the error that appears when I enter a search term and click search. I receive:- &#8220;<em><strong>This Page has been modified since you opened it. You must open the page again<\/strong><\/em>.&#8221;<\/p>\n<p>Well I know that the submit button is calling a SharePoint javascript function, so I decided to pull a copy of that out of core.js and put it inline with my ascx after removing anything i don&#8217;t want.<\/p>\n<p>So now I&#8217;m left with the function called by my form button onClick() event.<\/p>\n<pre lang=\"Javascript\">function bsSubmitSearchRedirect(strUrl)\r\n{\r\n    var frm=document.forms[\"frmSiteSearch\"];\r\n    if (frm==null)\r\n    {\r\n        if (typeof(MSOWebpartPageFormName) !=\"undefined\")\r\n            frm=document.forms[MSOWebPartPageFormName];\r\n    }\r\n    if (frm !=null)\r\n    {\r\n        var searchText=frm.elements[\"SearchString\"].value;\r\n        strUrl=strUrl+\"?k=\" + escapeProperly(searchText);\r\n        frm.action=strUrl;\r\n        frm.submit();\r\n    } \r\n    \r\n}<\/pre>\n<p>But I&#8217;m still having this errpr when searching.. the weirdest thing about it though, if you click the refresh page link in the error.. it works perfectly..<\/p>\n<p>Watch this space..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just recently we installed Search Server Express for a client on their WSS infrastructure. It&#8217;s working quite nicely having a much more granular control than the standard WSS search functions, but my main gripe is the lack of SmallSearchServer control to replace the existing WSS one. Most users would rather click into a text box &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[13,16,12],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"Just recently we installed Search Server Express for a client on their WSS infrastructure. It&#8217;s working quite nicely having a much more granular control than the standard WSS search functions, but my main gripe is the lack of SmallSearchServer control to replace the existing WSS one. Most users would rather click into a text box &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2008-09-16T14:54:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-09-19T14:50:49+00:00\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\",\"url\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\",\"name\":\"Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"datePublished\":\"2008-09-16T14:54:26+00:00\",\"dateModified\":\"2008-09-19T14:50:49+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/","og_locale":"en_US","og_type":"article","og_title":"Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict","og_description":"Just recently we installed Search Server Express for a client on their WSS infrastructure. It&#8217;s working quite nicely having a much more granular control than the standard WSS search functions, but my main gripe is the lack of SmallSearchServer control to replace the existing WSS one. Most users would rather click into a text box &hellip; Continue reading","og_url":"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2008-09-16T14:54:26+00:00","article_modified_time":"2008-09-19T14:50:49+00:00","author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/","url":"https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/","name":"Integrating Search Server Express into WSS 3.0 Team Site. - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"datePublished":"2008-09-16T14:54:26+00:00","dateModified":"2008-09-19T14:50:49+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myfatblog.co.uk\/index.php\/2008\/09\/integrating-search-server-express-into-wss-30-team-site\/"]}]},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":0,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}