(This page can be found at the following URL: <a href="http://openwetware.org/wiki/OpenWetWare:Software/Projects/Local_Search">http://openwetware.org/wiki/OpenWetWare:Software/Projects/Local_Search</a>)<br>
<br>The Local Search feature is accessed via a template: There currently are no arguments required. Just drop in the tag and you have a local search box. It's not elegant but it works pretty well. <br><br>{{GoogleSearch}}<br>
<br>Please post any comments on the following discussion page:<br><br><a href="http://openwetware.org/wiki/OpenWetWare:Software/Projects/Local_Search/Discussion">http://openwetware.org/wiki/OpenWetWare:Software/Projects/Local_Search/Discussion</a><br>
<br>Please use this as the way you deploy the search. If you look inside of it, you will note that there is a single parser tag, <google />. Please use the template rather than the tag. As i add aditional parameters, I'll continue to support the template. <br>
<br>Just place the following tag anywhere in a page hierarchy and it will create a search box that will only search the hierarchically descending pages. <br><br>Thanks once more to Austin for suggesting this approach. And thanks to Google for religiously searching OWW on a regular basis to make it possible.<br>
<br>There are a few enhancement I'm going to add next.<br><br>1. When you hit search with nothing in the box, Google currently will return all of the pages. This isn't a bad thing but it's not necessary. Instead, hitting search with nothing in the search box will do.....<br>
<br>nothing!<br><br>2. This won't immeiately work for private wikis. I'm adding support so that it will locate the current website next. This isn't a big deal but it's useful enough that Barry may want to use it in his private wiki and currently won't be abe to.<br>
<br>3. Google provides a more exensive Javascript library to allow more complex search features. I'll add support for this when I have time. This is a low priority.<br><br>4. Currently,the pages returned are displayed on Google's website. I want to redirect the content back to a local OWW page so that there won't be a jarring experience of searcing and leaving then returning. I can use an html iframe for this but I hate to do this for security reasons. The good thing is that the results will always be limited to OWW so this may not be a huge problem. <br>
<br>After clearing this up, I'll take my 'experience' in seeing how people use this back to the native OWW search engine and see if we can better handle results in a more timely manner.<br><br>Thanks.<br><br>B.<br>
<br>