0
Select d.Path 
from Documents d 
inner join (SELECT FT_TBL.DocumentId, KEY_TBL.RANK as ranks
            FROM FullTextCatalog AS FT_TBL 
            INNER JOIN FREETEXTTABLE(FullTextCatalog, Icerik, 
            ' "hısım*" ' ) AS KEY_TBL
            ON FT_TBL.DocumentId = KEY_TBL.[KEY]) as results on d.Id = results.DocumentId 
order by results.ranks

此查询仅返回具有“hısım”字词的行。但是预期的结果应该有“hısım”这个词和它的前缀。我对吗?即“hısımlar”、“hısımları”等。

所以我错过了什么?

4

1 回答 1

0

我认为您应该改用 CONTAINSTABLE

Select d.Path 
from Documents d 
inner join (SELECT FT_TBL.DocumentId, KEY_TBL.RANK as ranks
        FROM FullTextCatalog AS FT_TBL 
        INNER JOIN CONTAINSTABLE(FullTextCatalog, Icerik, 
        ' "hısım*" ' ) AS KEY_TBL
        ON FT_TBL.DocumentId = KEY_TBL.[KEY]) as results on d.Id = results.DocumentId 
order by results.ranks

它适用于我的示例。

于 2012-06-21T15:21:57.163 回答