ARCHIVED: As a web site manager at IU, how do I configure a search box to use Microsoft SharePoint FAST Search?
Web site managers at Indiana University can configure search boxes to use the Microsoft SharePoint FAST Search service (FAST).
If you have questions or comments, email the IU Search team.
On this page:
- Setting up a basic IU search box that uses FAST
- Setting up an IU campus-specific search box that uses FAST
- Setting up an advanced IU search box that uses FAST
Setting up a basic IU search box that uses FAST
Using the branding bar from IU Visual Identity, enter the HTML code below to add a box to your site for searching all IU content indexed by FAST:
<!-- BEGIN IU SEARCH BOX --> <form id="iusearch" method="get" action="https://search.sharepoint.iu.edu/Pages/results.aspx"> <fieldset id="set1"> <ul class="unstyled"> <li><a href="http://people.iu.edu/">People</a></li> <li><label for="k">IU Search:</label></li> </ul> </fieldset> <fieldset id="set2"> <input type="text" name="k" id="searchtxt" maxlength="255" value="Search" onfocus="if(this.value=='Search')this.value='';" onblur="if(this.value=='')this.value='Search';" /> <input type="image" name="btnG" id="go" src="img/go_red.gif" alt="GO" /> </fieldset> </form> <!-- END IU SEARCH BOX -->Setting up an IU campus-specific search box that uses FAST
Using the branding bar from IU Visual Identity as an example, enter the HTML code below to add a box that searches all IU content by default, and provides an option for users to narrow their searches to only specific IU campus web sites:
<!-- BEGIN BASIC IU SEARCH BOX WITH CAMPUS SCOPE OPTION --> <form id="iusearch" method="get" action="https://search.sharepoint.iu.edu/Pages/results.aspx"> <fieldset id="set1"> <ul class="unstyled"> <li><a href="http://people.iu.edu/">People</a></li> <li> <!-- Input to customize for narrowing search scope --> <input type="radio" name="s" id="search1" value="indiana" /> <label for="search1">Indiana</label> </li> <li> <!-- Input to customize for narrowing search scope --> <input type="radio" name="s" id="search2" value="" checked="checked"/> <label for="search2">All IU</label> </li> </ul> </fieldset> <fieldset id="set2"> <input type="text" name="k" id="searchtxt" maxlength="255" value="Search" onfocus="if(this.value=='Search')this.value='';" onblur="if(this.value=='')this.value='Search';" /> <input type="image" name="btnG" id="go" src="img/go_red.gif" alt="GO" /> </fieldset> </form> <!-- END BASIC IU SEARCH BOX WITH CAMPUS SCOPE OPTION -->Note: The code above contains two radio input elements named "s". The empty value for the "All IU" input will result in the same basic search as mentioned first. The value of "indiana" added to the other radio button will limit the search results to a particular campus-specific site.
Site owners may choose from the following IU campus-level scopes:
- iub
- iue
- ipfw
- iuk
- iun
- iusb
- ius
- iupui
Setting up an advanced IU search box that uses FAST
Using the example form from the IU Visual Identity Web Publishing Downloads area:
- Insert the following HTML code where you want the search box to appear: <!-- BEGIN OPTIONAL SEARCH FEATURE --> <form method="get" action="https://search.sharepoint.iu.edu/sites/example7/Pages/results.aspx"> <fieldset id="set1"> <ul> <li><a href="http://people.iu.edu/">People</a></li> <li> <!-- Input to customize for narrowing search scope --> <input type="radio" name="s" id="search1" value="IUPUI" /> <label for="search1">IUPUI</label> </li> <li> <input type="radio" name="s" id="search2" value="" checked="checked" /> <label for="search2">IU</label> </li> </ul> </fieldset> <fieldset id="set2"> <input type="text" name="k" id="searchtxt" maxlength="255" value="Search" onfocus="if(this.value=='Search')this.value='';" onblur="if(this.value=='')this.value='Search';" /> <input type="image" name="btnG" id="go" src="img/go_red.gif" alt="GO" /> </fieldset> </form> <!-- END OPTIONAL SEARCH FEATURE -->
- Customize the value of the form's "action" attribute for your
search site.
For example, if your search site is
https://search.sharepoint.iu.edu/sites/demo1/Pages/results.aspxhttps://search.sharepoint.iu.edu/sites/demo1/, you'd enter this URL:The opening form element tag would look like this:
<form method="get" action="https://search.sharepoint.iu.edu/sites/demo1/Pages/results.aspx"> - Provide an option to narrow your search scope.
If you have not already defined a default search scope for your search results, you may change the value of the input named "s" to the name of a scope you wish to target:
name="s" value="IUPUI"This lets you provide users an option to restrict searching to a specific scope, such as your department or school site. Place your scope's name in the "value" attribute for this input element. (e.g.,
iupui,iub,ipfw). For more, see ARCHIVED: Search example to specify a default scope.
Last modified on March 07, 2013.







