Creating and maintaining text indexes  Adding an IDENTITY column to a source table

Chapter 3: Configuring Adaptive Server for Full-Text Searches

Setting up source tables for indexing

The source table contains the data on which you perform searches (for example, the blurbs table in the pubs2 database). For more information, see “The source table”.

Before you can create text indexes on a source table, you must:

Every source table must contain an IDENTITY column or primary key to uniquely identify each row and provide a means of joining the index table and the source table. When you create a text index, the IDENTITY column or primary key is passed with the indexed columns to the Enhanced Full-Text Search engine. The IDENTITY column or primary key value is stored in the text index and is mapped to the id column in the index table. If a table does not have a primary key an IDENTITY column can be added to the table.





Copyright © 2005. Sybase Inc. All rights reserved. Adding an IDENTITY column to a source table

View this book as PDF