【问题标题】:SQL Server Full Text Search not working for meSQL Server 全文搜索对我不起作用
【发布时间】: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


    【解决方案1】:

    正如另一个问题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;
    

    【讨论】:

      猜你喜欢
      • 2021-02-21
      • 1970-01-01
      • 2016-02-14
      • 2010-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-22
      • 1970-01-01
      相关资源
      最近更新 更多