Can I define which word breakers to use when building a mssql fulltext index?

前端 未结 2 1606
生来不讨喜
生来不讨喜 2020-12-16 05:26

I have created a fulltext catalog that stores the data from some of the columns in a table, but the contents seem to have been split apart by characters that I don\'t really

2条回答
  •  庸人自扰
    2020-12-16 05:43

    Full text indexes only consider the characters _ and ` while indexing. All the other characters are ignored and the words get split where these characters occur. This is mainly because full text indexes are designed to index large documents and there only proper words are considered to make it a more refined search.

    We faced a similar problem. To solve this we actually had a translation table, where characters like @,-, / were replaced with special sequences like '`at`','`dash`','`slash`' etc. While searching in the full text, u've to again replace ur characters in the search string with these special sequences and search. This should take care of the special characters.

提交回复
热议问题