The SQL Full Text Catalog, provides a fast search of you products into you DashCommerce's database. But what happens if you mess up the catalog? You will receive errors like
A critical error has occurred: Cannot drop full-text catalog 'dashCommerce_Catalog' because it contains a full-text index
and you will not able to drop the catalog
Cannot drop full-text catalog 'dashCommerce_Catalog' because it contains a full-text index.
Unless you follow the steps illustrated below.
Connect to you DashCommerce's database, and launch:
SELECT name, ftcatid FROM sysobjects WHERE ftcatid > 0
GO
This will return the table where the Full Text Catalg is use:
Now, we can drop it:
EXEC sp_fulltext_table 'dashCommerce_Store_Product', 'drop'
GO
DROP FULLTEXT CATALOG dashCommerce_Catalog
GO
And recreate it, by using the
fulltextcatalog.sql script, located under /Install/Scripts
EXEC sp_fulltext_database 'enable'
GO
CREATE FULLTEXT CATALOG dashCommerce_Catalog
GO
CREATE FULLTEXT INDEX ON [dbo].[dashCommerce_Store_Product] KEY INDEX [PK_dashCommerce_Products] ON [dashCommerce_Catalog] WITH CHANGE_TRACKING AUTO
GO
ALTER FULLTEXT INDEX ON [dbo].[dashCommerce_Store_Product] ADD ([Name] LANGUAGE 1033)
GO
ALTER FULLTEXT INDEX ON [dbo].[dashCommerce_Store_Product] ADD (ShortDescription LANGUAGE 1033)
GO
ALTER FULLTEXT INDEX ON [dbo].[dashCommerce_Store_Product] ADD (BaseSku LANGUAGE 1033)
GO