Ignore Dash (-) from Full Text Search (FREETEXTTABLE) search column in SQL Server

Viewed 1274

I use CONTAINSTABLE for my searching algorithm. I want to search column value with ignoring dash in particular column value. for example, column contains '12345-67' then it should search with '1234567' as below query.

SELECT * 
FROM table1 AS FT_Table
INNER JOIN CONTAINSTABLE(table2, columnname, '1234567') AS Key_Table ON FT_Table.ID = Key_Table.[Key]

Is there any way to ignore dash (-) while searching with string that doesn't contain a dash (-)?

1 Answers
Related