containsstable不返回预期结果

时间:2016-11-18 09:17:04

标签: sql sql-server

我有一个带有一个标题值的产品的sql表' Beko EV7100' 当我搜索7100时,此行不在我的搜索结果中 当我搜索EV7100时,没关系 我究竟做错了什么? 你可能会看到下面的查询

SELECT *, ft.[Rank]
FROM [dbo].[STORE_PRODUCTS] AS sp with(nolock) 
INNER JOIN CONTAINSTABLE([STORE_PRODUCTS], ( title,[short_description],[long_description]/*,permalink_url*/,meta_keywords), 
ISABOUT ('+@fixed_query+', title WEIGHT(0.4), short_description WEIGHT(0.2),long_description WEIGHT(0.2), permalink_url WEIGHT(0.1), meta_keywords  WEIGHT(0.1)) ) AS ft
ON ft.[key] = sp.id     
and ft.[Rank] > 5

0 个答案:

没有答案