全文检索,找不到指定的模块???
创建全文检索过程如下,都成功的,但到最后执行查询的时候,出现找不到指定的模块,请高手指点
use pubs --打开数据库
go
--检查pubs是否支持全文索引,如果不支持全文索引,则使用sp_fulltext_datebase打开该功能
if (select databaseproperty ('pubs','IsFulltextEnables'))=0
execute sp_fulltext_database 'enable'
--建立全文目录FT_pubs
execute sp_fulltext_catalog 'FT_pubs01','create'
--为titles表建立全文索引数据元
execute sp_fulltext_table 'titles','create','FT_pubs','UPKCL_titleidind'
--设置全文索引列名
execute sp_fulltext_column 'titles','title','add'
execute sp_fulltext_column 'titles','notes','add'
--激活全文检索
execute sp_fulltext_table 'FT_pubs01','activate'
--填充全文索引目录
GO
--全文目录填充完成后,使用全文目录检索
--查询title列或notes列中包含有database或computer字符串的图书名称
SELECT title
FROM titles
where freetext(title,'database')
or contains(notes,'database')
or contains(title,'computer')
or contains(notes,'computer')
--------此处查询提示找不到指定的模块