當我執行下面的SQL,沒有任何反應:SQl全文搜索不起作用?
select * from docs
where freetext(*, 'my search string')
我知道,「我的搜索字符串」是在一個領域中的表。
表格文檔已添加到我的目錄中。要搜索的字段包含html內容。
當我執行下面的SQL,沒有任何反應:SQl全文搜索不起作用?
select * from docs
where freetext(*, 'my search string')
我知道,「我的搜索字符串」是在一個領域中的表。
表格文檔已添加到我的目錄中。要搜索的字段包含html內容。
確保您的目錄是最新的。全文目錄必須更新,或者增量更新或全部人口。 SQL Server 2005也自動更新目錄,但默認情況下它們不會被設置爲這樣,並且這些會對性能產生嚴重影響。
您是否已啓用數據庫表/列進行全文搜索?
查看示例Article on freetect including examples on how to enable full text search
我正在使用sql server 2008 express。我如何更新目錄? – Martijn 2009-04-22 13:38:51
http://technet.microsoft.com/en-us/library/ms189801.aspx。看看'start_full'和'start_incremental' – 2009-04-22 13:47:06