Full-Text Search Maintenance

After you create full-text catalogs and indexes that you can query, you have to maintain them. The catalogs and indexes maintain themselves, but you need to focus on backing up and restoring them and on tuning your search solution for optimal performance. In SQL Server 2012, the full-text catalogs get fragmented from time to time, especially if you are using the Automatic (Track Changes Automatically) setting. You can check the level of fragmentation by using the following command:

SELECT table_id, status FROM sys.fulltext_index_fragments WHEREstatus=4OR status=6;

If you notice that your tables are highly fragmented, you will optimize your full-text indexes. Here is the command you use ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.