Working with Automatic Search

Cc939853.chap_13(en-us,TechNet.10).gif Cc939853.image(en-us,TechNet.10).gif

You can customize automatic search, which enables users to type a conversational word into the Address bar to search for frequently used pages. Users do not need to remember the URLs for the pages that you specify, so key information is easier to find.

For example, you could enable a Web page about invoices to appear when a user types the term "invoice" into the Address bar, even if the URL of the page doesn't contain this term. If you are a corporate administrator, the following topic shows you how you can customize automatic searching. If you are an ICP or ISP, send e-mail to for more information.

This feature is already enabled for the Internet. For example, typing certain distinct, popular terms into the Address bar causes a Web site associated with that term to appear. When a Web site cannot distinctly be associated with that term - for example, if there are several apparent matches - then a Web page showing top search results is displayed.

The Web site that appears does not necessarily contain the exact search term in its URL. If a Web site whose domain is the same as the term is not the best match for the search term (for example, if the search term is the same as the URL without www. and .com), then the user is redirected to the site that is the best match for that term. By default, the user is prompted when a redirection occurs.

The Automatic Search URL is configurable by using two parameters denoted by a percent (%) sign. These two values must be part of the URL itself. The value %1 represents what the user typed in the Address bar. The value %2 represents the type of search option chosen by the user. Possible values for %2 are 3, 2, 1, and 0, where:

  • 3 = Display the results and go to the most likely site.

  • 2 = Just go to the most likely site.

  • 1 = Just display the results in the main window.

  • 0 = Do not search from the Address bar.

Cc939853.prcarrow(en-us,TechNet.10).gif To set up Automatic Search

  1. Create a script and post it to an intranet server.
    The search page can be a script file, such as an Active Server Page (.asp) file, that conditionally checks for search terms. The script needs to be hosted at this location: http://ieautosearch/response.asp?MT=%1&srch=%2. If you are not using IIS, then you would need to remap this URL to the address where your script is located.

  2. If you are setting this option on the System Policies and Restrictions screen in Stage 5 of the Customization wizard, click Internet Settings .
    If you are setting this option in the Profile Manager, click Policies and Restrictions , and then click Internet Settings .

  3. Click Advanced Settings , and then in the Searching area, type intranet into the Search Provider Keyword box.
    If you're just redirecting users to another site rather than returning search results, then select Just go to the most likely site in the When Searching From The Address Bar box.

Note If you are a corporate administrator, you are not customizing search, and your organization doesn't have Internet access, you may want to disable automatic searching. To do this, in the Searching area on the Advanced Settings screen, select Never search from the Address bar .

Sample .asp AutoSearch Script

The following is a script that shows how search queries on an intranet can be redirected to the appropriate Web page.

<%@ Language=VBScript %>
' search holds the words typed in the Address bar by the user, without 
' the "go" or ' "find" or any delimiters like "+" for spaces.
' If the user types "Apple pie," search = "Apple pie."
' If the user types "find Apple pie," search = "Apple pie."
search = Request.QueryString("MT")
search = UCase(search)
searchOption = Request.QueryString("srch")

' This is a simple if/then/else script to redirect the browser 
' to the site of your choice based on what the user typed.
' Example: expense report is an intranet page about 
' filling out an expense report
if (search = "NEW HIRE") then
elseif (search = "LIBRARY CATALOG") then
elseif (search = "EXPENSE REPORT") then
elseif (search = "LUNCH MENU") then
' If there is not a match, use the
' default IE autosearch server
+ search + "&srch=" + searchOption + 
end if