Sql server Fulltext index Rank features with Datetime
-
19-10-2022 - |
문제
I'm a fresh man in SQL Server Fulltext Index service. Now I have a PostBody table with 3 columns
(PostID bigint, PostBody nvarchar(max),CreatedDate datetime2(7)).
I'm using the Table varible function ContainsTable
to get the top 100 ranked results. But I also need to add one more feature CreatedDate
that will be make the results more reasonable. The latest and matched results should be shown.
select top 100 p.*,rp.Rank from PostBody p, ContainsTable(PostBody,Body,'mvc',100) as rp
where p.PostID=rp.Key
order by rp.Rank desc
But How will be CreatedDate take into consider?
I will be very appreciate for your help. Regards,
David
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow