全文搜索包含未返回预期结果

问题描述 投票:0回答:0

我有一个简单的表格类别

Id int identity not null
Name nvarchar(100) not null

Id Name
1  Bundesliga
2  La liga
3  Primeira Liga

我在 Name 上定义了一个全文索引并尝试以下 2 个查询

select c.id, c.name from category c
where contains(c.name,'"liga"')

select c.id, c.name from category c
where contains(c.name,'"*liga*"')

它只返回 2,3(西甲和联赛),德甲从结果中删除。

我那里有错吗?

sql-server full-text-search
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.