Question

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

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top