What is the SQL used to do a search similar to “Related Questions” on Stackoverflow

前端 未结 8 2128
傲寒
傲寒 2020-12-30 16:08

I am trying to implement a feature similar to the "Related Questions" on Stackoverflow.

How do I go about writing the SQL statement that will search the Tit

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 16:39

    Check out this podcast.

    One of our major performance optimizations for the “related questions” query is removing the top 10,000 most common English dictionary words (as determined by Google search) before submitting the query to the SQL Server 2008 full text engine. It’s shocking how little is left of most posts once you remove the top 10k English dictionary words. This helps limit and narrow the returned results, which makes the query dramatically faster.

提交回复
热议问题