Sql Server 2008在其FTS功能中本身不支持命中突出顯示,目前您必須自己實現using a variety of techniques。 Microsoft有made some vague noises將其包含在未來的SQL Server版本中。 有誰知道SQL Server 2012 FTS是否會支持點擊高亮?
我已經通過github中的文檔:http://github.com/outoftime/sunspot找到突出顯示的解決方案,但它似乎並不適用於我。 我的工作模式有這樣的塊(省略目的某些字段):
searchable do
text :name
string :name, :stored => true
time :updated_at
tim