SQL Server Full Text Search not working for me

痴心易碎 提交于 2020-12-13 04:21:09

问题


I have problem with Full Text Search in SQL Server. My query:

Select [Name] From [POI] Where Contains([Name],  N'"bank of*"');

Query returns no rows. But table has several rows that contains "bank of ..." When I delete the word "of" everything works. Please help to solve this problem.


回答1:


As described in this other question Dropping noise words in SQL Server 2005 full text indexing, noise words are not included in the indexing. "of" is a noise word, which would explain the behavior you're seeing.

See also:

Configure and Manage Stopwords and Stoplists for Full-Text Search

Noise/Stop Words in SQL Server

SQL Server: no search results caused by noise words

Which includes the suggestion

ALTER FULLTEXT INDEX ON table
   SET STOPLIST OFF;


来源:https://stackoverflow.com/questions/48815415/sql-server-full-text-search-not-working-for-me

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