SQL Server 2008 FullTextSearch Single Character in Name Missing from Results

强颜欢笑 提交于 2019-12-30 22:53:26

问题


I have a full text indexed column in SQL Server 2008 which has the following rows:

W Smithers, Wilda Smithers, W2 Smithers

When I run the following query I only get back Wilda Smithers and W2 Smithers.

SELECT  FT_TBL.full_name as results
FROM dbo.ft_table AS FT_TBL WITH (NOLOCK) 
INNER JOIN CONTAINSTABLE (ft_table , full_name, '("w*" AND "smither*")',12) AS KEY_TBL 
ON FT_TBL.ft_key_id = KEY_TBL.[KEY]
ORDER BY KEY_TBL.RANK desc

Any suggestions on how to tweak this so W Smithers is also in my result set?


回答1:


The W probably is a stop word. Try to remove it from the stoplist.

Check this link to see how it is done: Configure and Manage Stopwords and Stoplists for Full-Text Search

EDIT

Try to recreate the FT index, but this time do not specify any stop list at all.



来源:https://stackoverflow.com/questions/13055425/sql-server-2008-fulltextsearch-single-character-in-name-missing-from-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!