How to change word-break characters in SQL Server Full-Text indexing

前端 未结 2 1651
小蘑菇
小蘑菇 2021-01-03 10:45

By default, when one tells SQL Server (currently using 2008) to Full-Text index a column, it treats characters such as \"@\" and \".\" as work-breakers, similarly to \" \".<

2条回答
  •  旧时难觅i
    2021-01-03 10:54

    According to TechNet's article on SQL 2008 Full-Text Search:

    well-known published interfaces provide the framework for Full-Text Engine extensibility. For more information, see the Microsoft Developer Network (MSDN) topics IFilter, IWordBreaker, and IStemmer.

    So, at least according to this article, you can implement a custom IWordBreaker implementation (see http://www.siao2.com/2005/03/14/395199.aspx for more info) and get SQL to use it.

    What I haven't found so far is how to plug your custom word-breaker into SQL itself-- how to tell SQL to use your word-breaker. Sorry for the incomplete answer... hope I got you at least part of the way to a solution.

提交回复
热议问题