Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 FTS FORMSOF

Author  Topic 

Dennis Falls
Starting Member

41 Posts

Posted - 2009-09-01 : 12:58:07
I have created a Full-Text Index on a table and modified my tsENU file. My query

SELECT col1,col2
FROM MyTable t
JOIN CONTAINSTABLE(MyTable,*,'FORMSOF(THESAURUS,vomit)') k on t.ID = k.[key]

returns the expected results.
I also get results from

SELECT col1,col2
FROM MyTable t
JOIN CONTAINSTABLE(MyTable,*,'vomit NEAR nausea') k on t.ID = k.[key]

What I am not able to do is use the FORMSOF along with NEAR such as

CONTAINSTABLE(MyTable,*,'FORMSOF(THESAURUS,vomit) NEAR nausea')

and I receive the following error

Syntax error near 'NEAR' in the full-text search condition 'FORMSOF(THESAURUS,vomit) NEAR nausea'.

Is there a way to use FORMSOF with NEAR?
   

- Advertisement -