【发布时间】:2018-07-26 16:37:04
【问题描述】:
我在 SQL Server 中遇到全文搜索问题。 我的查询:
Select [Name] From [POI] Where Contains([Name], N'"bank of*"');
查询不返回任何行。 但是表有几行包含“bank of ...” 当我删除“的”一词时,一切正常。 请帮忙解决这个问题。
【问题讨论】:
标签: sql-server full-text-search contains
我在 SQL Server 中遇到全文搜索问题。 我的查询:
Select [Name] From [POI] Where Contains([Name], N'"bank of*"');
查询不返回任何行。 但是表有几行包含“bank of ...” 当我删除“的”一词时,一切正常。 请帮忙解决这个问题。
【问题讨论】:
标签: sql-server full-text-search contains
正如另一个问题Dropping noise words in SQL Server 2005 full text indexing 中所述,索引中不包含干扰词。 “of”是一个干扰词,可以解释您所看到的行为。
另见:
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
其中包括建议
ALTER FULLTEXT INDEX ON table
SET STOPLIST OFF;
【讨论】: