icon Microsoft Search Server
Created by Orckestra

How to add search to your website

Once you have configured your Search Server and know the path to the Microsoft Search Server 2008/2010 Express query web service for your site, follow the steps below:

  1. From the Content or Layout perspective, insert the Composite.Search.MicrosoftSearchServer.SearchForm function ( Insert > Function), or add the following code:
    Expand code
  2. Specify the  Search Result Page  parameter (required):
    • Search Result Page: A page where Composite.Search.MicrosoftSearchServer.SearchResult function will be inserted and the search results will be displayed.
  3. If necessary, specify its other parameters (optional):
    • Search Button Label: The label for the search button. By default this value is set to "OK", but you can change it (Specify a simple value).
    • Search Button Title: The label for the search button. By default this value is set to "Search", but you can change it (Specify a simple value).
  4. From the Content or Layout perspective, insert the Composite.Search.MicrosoftSearchServer.SearchResult function ( Insert > Function), or add the following code:
    Expand code
  5. Specify the search service URL:
    • Search Service Url: Url to the query service. Example: http://<Your Server Name>/_vti_bin/search.asmx.
      Note: Make sure to replace long server names with short ones (Handling the issue of long server names).
  6. Specify the Credentials parameter if you use the Composite.Search.MicrosoftSearchServer package on a server where Microsoft Search Server is not installed. To use this parameter, select one of the following functions:
    • Composite.Search.MicrosoftSearchServer.GetDefaultNetworkCredentials: To use default network credentials.
    • Composite.Search.MicrosoftSearchServer.GetNetworkCredentials: To specify the credentials manually in the following parameters:
      • Username: The user in SharePoint 3.0 Central Administration, who has necessary permissions.
      • Password: The password of this user.
  7. If necessary, specify other parameters (optional):
    • Search Query: Keywords to search for (no keywords by default).
    • Page Size: Search results per page (10 by default, which you can override by specifying a simple value.)
    • Scope: Specify the search scope. If not specified,  Composite.Search.MicrosoftSearchServer will be used without the scope.
      Note: We recommend that you use set up and use scopes as describes in Creating Search scopes if Microsoft Search Server serves multiple websites.

Important Notes

  1. Before installing this package you should first install and configure Microsoft Search Server 2008 Express or Microsoft Search Server 2010 Express on the server.
  2. Read documentation on how to index your website.
  3. To configure the search server to crawl URLs with parameters, use Search Server > Search Administration > Crawl rules menu.
  4. To set up indexing specific file types, such as PDF or DOCX, read detailed information here.

Customization

You can customize the layout by editing its style sheets:

  • /Frontend/Composite/Search/MicrosoftSearchServer/Styles.css