sql-server – SQL Server PDF全文搜索无法在FileStream PDF文件上运行

前端之家收集整理的这篇文章主要介绍了sql-server – SQL Server PDF全文搜索无法在FileStream PDF文件上运行前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我无法使用全文搜索来处理我通过FileStream加载到我的sql Db中的PDF文件.

版本:sql Server 2008 R2(开发人员版 – 做概念验证)
操作系统:Windows 7

我采取的步骤.

>安装了Adobe iFilter
>确保sql Server全文守护程序服务正在运行
>添加了Adobe PDF Filter bin目录的环境路径
>运行以下脚本来设置新的iFilter并确保它是
活性

@H_301_13@EXEC sp_fulltext_service @action='load_os_resources',@value=1; -- update os resources EXEC sp_fulltext_service 'verify_signature',0 -- don't verify signatures EXEC sp_fulltext_service 'update_languages'; -- update language list EXEC sp_fulltext_service 'restart_all_fdhosts'; -- restart daemon EXEC sp_help_fulltext_system_components 'filter'; -- view active filters

>在我想索引的FileStream表上创建了全文索引

@H_301_13@CREATE FULLTEXT INDEX on local.FILE_REPOSITORY (DOCUMENT TYPE COLUMN FILE_EXTENSION) Key Index PK_File_Repository ON (FileSearchCat,FILEGROUP [PRIMARY]); GO

>重建目录

@H_301_13@ALTER FULLTEXT CATALOG FileSearchCatREBUILD WITH ACCENT_SENSITIVITY=OFF;

>查询查询以查看索引是否正常工作

@H_301_13@select * from local.FILE_REPOSITORYwhere freetext(DOCUMENT,'25678')

不返回PDF的任何结果,但对单词(docx)工作正常吗?

我究竟做错了什么?

解决方法

好的,所以我想出来……我需要运行这些步骤: @H_301_13@EXEC sp_fulltext_service @action='load_os_resources',0 -- don't verify signatures EXEC sp_fulltext_service 'update_languages'; -- update language list EXEC sp_fulltext_service 'restart_all_fdhosts'; -- restart daemon EXEC sp_help_fulltext_system_components 'filter'; -- view active filters

但还需要运行这个!!!!

@H_301_13@reconfigure with override

猜你在找的MsSQL相关文章