I want to create a stored procedure to perform a combined keyword search using CONTAINS, something like below:
SELECT theContent FROM FtsTest WHERE CONTAINS (theContent, ' FORMSOF (INFLECTIONAL, keyword1) AND FORMSOF (INFLECTIONAL, keyword2)');
and the number of keywords can vary, so I tried to pass the entire FORMSOF ... AND FORMSOF ..... sentence as a parameter, declaring the parameter as nvarchar (max), but it wonβt let me do this by saying that the type of argument "nvarchar (max)" is not valid for argument 2 of "CONTAINS".
So, is there a way to make it work with sp? Thanks!
source share