Creating Full Text Search Catalog and Full Text Search
USE dbSur
EXEC sp_fulltext_database 'enable'
--1 First Create the catalog (if
you already have then skip this step)
EXEC sp_fulltext_catalog 'SearchOffers','create'
--2 Add a full text index to a
table with index_name
EXEC sp_fulltext_table 'PostOffer', 'create', 'SearchOffers', 'PK_PostOffer'
--3 Add a column to the full text
index
EXEC sp_fulltext_column 'PostOffer', 'Title', 'add'
EXEC sp_fulltext_column 'PostOffer', 'Description', 'add'
--4 Activate the index on table
EXEC sp_fulltext_table 'PostOffer','activate'
--5 Start full population
EXEC sp_fulltext_catalog 'SearchOffers', 'start_full'
Comments
Post a Comment