Managing Search

Table of Contents

Getting Started
Managing Indexes
Creating an Index
Editing an Index
Rebuilding an Index
Querying an Index
Deleting an Index
Adding Search to Your Site
Create a Search Template
Adding the Search Container Rule
Viewing Search History
Search Language
Query Terms
Fields
Wildcards
Range Searches
Fuzzy Searches
Proximity Searches
Term Boosting
Boolean Operators

Recite CMS comes with a built-in search solution, allowing you to easily add a search feature to your web site.

This feature works by allowing you to create one or more search indexes. A search index contains all the data for a single set of data.

Each record in a search index is referred to as a document.

For example, if you want to let people search within your uploaded PDF documents, you can create a search consisting of only your PDF documents. You can have as many indexes as you like, and you combine as many as required on your search forms.

This chapter will instruct you how to create and manage your search indexes, as well as how to create a search form to add to your web site so users can search.

Getting Started

There are three different Control Panel widgets available to help you manage search indexes. These are as follows.

  • Search Indexes. This widget lists all search indexes that exist for your site.

  • Search Index Viewer. This widget is for viewing the details of a single search index. You cannot add this widget manually - it is automatically created when you click on a search index in the search indexes widget.

  • Search History. This widget lists searches that have been performed on your site.

These widgets can be added manually (from the Search Management category in the widget browser), or you can create a new tab using the Search pre-defined layout.

The following figure demonstrates this layout. The tab is a two-column layout, with the Search Indexes widget in the left column and the Search History widget in the right column.

Figure 9.1. Sample tab layout for managing search

Sample tab layout for managing search

For the purposes of this chapter, I'll assume you're working with a tab having the same layout as the pre-built Search tab.