Get word frequencies from SQL Server Full Text Search

后端 未结 2 790
刺人心
刺人心 2020-12-10 11:04

SQL Server Full-Text Search computes rank based on the frequency of the word in the document and in the set of all documents (TFIDF). Is it possible to access these values d

相关标签:
2条回答
  • 2020-12-10 11:55

    I don't know of an easy way to do this on SQL Server 2005, but on 2008 there are two Transact-SQL commands do exactly what you need.

    • sys.dm_fts_index_keywords_by_document
      • http://technet.microsoft.com/en-us/library/cc280607.aspx
    • sys.dm_fts_index_keywords
      • http://technet.microsoft.com/en-us/library/cc280900.aspx
    0 讨论(0)
  • 2020-12-10 11:56

    I've not worked with Full-Text Search, but I have before accomplished a similar result by using a numbers table-based routine to split the input text into individual words (many examples of how to do this available elsewhere) and running aggregate functions against the results. Faster than you'd expect actually.

    0 讨论(0)
提交回复
热议问题