SQL 服务器全文搜索对我不起作用
SQL Server Full Text Search not working for me
我在 SQL 服务器中的全文搜索有问题。
我的查询:
Select [Name] From [POI] Where Contains([Name], N'"bank of*"');
查询 returns 没有行。
但是 table 有几行包含 "bank of ..."
当我删除单词 "of" 时,一切正常。
请帮助解决这个问题。
如另一个问题 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;
我在 SQL 服务器中的全文搜索有问题。 我的查询:
Select [Name] From [POI] Where Contains([Name], N'"bank of*"');
查询 returns 没有行。 但是 table 有几行包含 "bank of ..." 当我删除单词 "of" 时,一切正常。 请帮助解决这个问题。
如另一个问题 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;