34,838
社区成员




SELECT stopword FROM sys.fulltext_stopwords WHERE language_id = 2052 --简体中文
--下面是部分结果:
/*
后
因
在
好
它
小 --请注意这里
已
并
很
我
*/
SELECT display_term
FROM sys.dm_fts_index_keywords_by_document(DB_ID('TestFT'),OBJECT_ID('TB'))
WHERE document_id=2 and column_id = 3 --全文键值为2 第3列
/*
display_term
---------------
宁夏
固
原有
位
网友
给
敬爱
苍老 --注意这里
师
写
封
信
END OF FILE
*/
SELECT special_term,display_term FROM sys.dm_fts_parser('宁夏固原有一位网友给敬爱的苍老师写了一封信',1028,0,0) --繁体中文
/*
special_term display_term
---------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exact Match 宁
Exact Match 夏
Exact Match 固
Exact Match 原有
Noise Word 一
Exact Match 位
Exact Match 网
Exact Match 友
Exact Match 给
Exact Match 敬
Exact Match 爱
Noise Word 的
Exact Match 苍 --注意这里
Exact Match 老
Exact Match 师
Exact Match 写
Noise Word 了
Noise Word 一
Exact Match 封
Exact Match 信
(20 行受影响)
*/
SELECT special_term,display_term FROM sys.dm_fts_parser('宁夏固原有一位网友给敬爱的苍老师写了一封信',2052,0,0) --简体中文
/*
special_term display_term
---------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Exact Match 宁夏
Exact Match 固
Exact Match 原有
Noise Word 一
Exact Match 位
Exact Match 网友
Exact Match 给
Exact Match 敬爱
Noise Word 的
Exact Match 苍老 --注意这里
Exact Match 师
Exact Match 写
Noise Word 了
Noise Word 一
Exact Match 封
Exact Match 信
(16 行受影响)
*/