I'm trying to see if the Full-Text Search feature of SQL Server can be used in a certain way.
My idea is to do something like: Take N keywords and search for all the forms of said keywords and its synonyms.
What I came up with was something along these lines:
SELECT *
FROM table
WHERE CONTAINS(*, CONTAINS(*,'FORMSOF(THESAURUS,FORMSOF(INFLECTIONAL,"keyword"))')
But this query doesn't work. Is this even possible? Is my idea reasonable, or am I going mad?
I think you'll have to do something like this:
EDIT
Otherwise, you might have to dynamically build the CONTAINS search conditions like this: