sca*_*cci 8 sql-server full-text-search filestream sql-server-2008
我无法使用全文搜索来处理我通过FileStream加载到我的SQL Db中的PDF文件.
版本:SQL Server 2008 R2(开发人员版 - 进行概念验证)操作系统:Windows 7
我采取的步骤.
运行以下脚本来设置新的iFilter并确保它处于活动状态
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
Run Code Online (Sandbox Code Playgroud)在我想索引的FileStream表上创建了全文索引
CREATE FULLTEXT INDEX on local.FILE_REPOSITORY
(DOCUMENT TYPE COLUMN FILE_EXTENSION)
Key Index PK_File_Repository ON
(FileSearchCat, FILEGROUP [PRIMARY]);
GO
Run Code Online (Sandbox Code Playgroud)重建目录
ALTER FULLTEXT CATALOG FileSearchCatREBUILD WITH ACCENT_SENSITIVITY=OFF;
Run Code Online (Sandbox Code Playgroud)执行查询以查看索引是否正常工作
select *
from local.FILE_REPOSITORYwhere freetext(DOCUMENT, '25678')
Run Code Online (Sandbox Code Playgroud)不返回PDF的任何结果,但对于单词(docx)工作正常吗?
我究竟做错了什么?
好吧我知道了......我需要运行这些步骤:
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
Run Code Online (Sandbox Code Playgroud)
但还需要运行这个!!!!
reconfigure with override
Run Code Online (Sandbox Code Playgroud)