Site Search
Another feature on the Recite CMS web site is a search function. This was added to the site using the search index management tools.
There are a number of different search index types available, each of which is used to store different data. For example, one type is used to store data about uplaoded files. We are going to the use the crawler index type. This works in a similar fashion to Google, in that it starts from your home page and finds all pages in your site so they can be searched.
The first step is to create the new search index. There are no configurable options for this index type. The index will be built automatically after it has been created.
Next we created a template for displaying the search form and outputting search results. Just like when creating forms, there are sample search results templates available.
The final step is to open the search page in container management mode and add the Site Search container rule. When adding this rule you must select which index in which to search. You can select any number of indexes here, meaning you can combine search results from several different indexes. Once the container rule has been added, the search tool can now be used. The following screenshot shows a sample of the search form being used.
Note that we also added a search form in the right-hand column of every page. Since we don't include search results directly with this form we didn't need to add it using the site search container rule.

