SQL Server Freetext match - how do I sort by relevance

前端 未结 2 1554
刺人心
刺人心 2020-12-31 18:02

Is it possible to order results in SQL Server 2005 by the relevance of a freetext match? In MySQL you can use the (roughly equivalent) MATCH function in the ORDER BY section

2条回答
  •  滥情空心
    2020-12-31 18:29

    Both FREETEXTTABLE and CONTAINSTABLE will return the [RANK] column, but make sure you are using either the correct variation or union both of them to get all appropriate results.

提交回复
热议问题