为什么我的单字符全文搜索不起作用? [英] Why isn't my single-character full text search working?

查看:84
本文介绍了为什么我的单字符全文搜索不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出此代码,我没有得到任何结果:

Given this code, I'm getting back no results:

SELECT TOP 10 * FROM MyTable WHERE CONTAINS(TextColumn, '"W"')

我检查过的东西:

  • 长词返回结果
  • 没有与此索引关联的停止列表
  • 该列中肯定有诸如"James W Brown"之类的文字
  • 全文索引是最新的.

我正在寻找与索引相关联的停止列表,而不是停止词.

I was looking for a stop lists, not a stop word, associated with the index.

推荐答案

答案是确保您有一个与索引关联的空停止列表.仅仅没有停止列表是不够的,因为它只会使用默认的停止列表.

The answer is to make sure you have an empty stop list associated with the index. It isn't enough to simply have no stop list, as it would just use the default stop list.

CREATE FULLTEXT STOPLIST [EmptyStopList] ;
GO
ALTER FULLTEXT INDEX ON MyTable SET STOPLIST [EmptyStopList]

这篇关于为什么我的单字符全文搜索不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆