I have set up the full-text search functionality in SQL Server 2008 express. This is what I did:
-- STEP 1: Create catalog
create fulltext catalog HtmlSearch
-- STEP 2: Fill catalog
create fulltext index on docs
(WordHtml)
key index IX_docs_1
on HtmlSearch
with change_tracking auto
-- STEP 3: Search
select * from docs
where freetext(*, 'beleid')
The table docs has one row where the field WordHtml has (html)content. When I execute step 3, nothing happens. I am sure the term 'beleid' exists in the html-document. The result of the query is 0 records. So what am I doing wrong? Do I somewhere have to configure that this field is Html? And of so, how do I do this?