The search box that is available to users at first glance seems very plain. Type in search terms and possibly select a scope, click the search button, and get back results. This behavior is fine for many situations, and for more complex searches the Advanced Search page can be used. However, the problem with the Advanced Search page is that it can be difficult to understand for users who are unfamiliar with the finer points of SharePoint searching.
As mentioned earlier, you can expose some of the advanced search functionality by manipulating the variables passed in the URL string. This example shows how to take advantage of the advanced searching capabilities of MOSS in a more user-friendly manner. This example demonstrates how to create a custom search box that allows users to search only on the Title field.
To provide the functionality required, you’ll be using a technique that includes using the Content Editor Web Part to create a custom search string based on user input.
For this example, you’ll add a Web Part to the home page that will allow users to do a quick search based on title. This example requires some basic JavaScript, but the specific code used was actually pulled from one of the countless free resources on the Internet and modified to fit the example.
|
18.227.24.209