A requirement of the CML application is a searchable library database in which all users can easily and quickly locate library titles of interest. Adding full-text search capabilities allows users to narrow and focus searches. The users are no longer overwhelmed by the task of looking through excess material, and the CML application performance is better when excess records are no longer retrieved and sent across the network.
Implementing full-text search enables the F & M employees to search library materials using the asterisk (*) wildcard and complex search criteria. Searches are constructed using the text values and operators the user enters on the Library Search Web page. The searches can contain AND, OR, and NEAR operators. The Library Search Web page applies full-text search to the fname and lname columns of the author table, the text column of the subject table, and the title, ISBN, and notes columns of the title table. The Catalog Filter Web page uses full-text search on the title column of the title table.
The CML application uses the CONTAINS predicate in searches on library materials. On the Library Search Web page the borrowers have three search options: author, subject, and title. The Catalog Filter Web page searches the title table. When designing the database tables that have columns to be registered for full-text search, those columns must have character-based data types. Adding a row-versioning (timestamp) column to a table allows for efficient incremental population of the full-text index. The Author Table, Subject Table, and Title Table topics describe timestamp columns. When a table is registered for full-text search, but has no timestamp column, the full-text catalog is completely repopulated when the catalog is refreshed. This can be a time-consuming process. When the schema changes or the table is activated since the last population a complete repopulation is performed, regardless of the presence of a row-versioning column. The following topics contain further information on full-text search in the CML application.
The first column of the following table lists the tables registered for full-text search in the CML SQL Server 7.0 database. The second column lists the fields registered for full-text search in the named table.
Table name | Column name | Data type |
---|---|---|
author table | fname
lname |
varchar
varchar |
subject table | text | varchar |
title table | title
ISBN notes |
varchar
varchar text |
Take the following steps to prepare the CML database for full-text search: