简体   繁体   English

SQL Server全文的自定义WordBreaker

[英]Custom WordBreaker for SQL Server Full-text

Does anyone have information on how to create a custom word breaker for SQL Server 2005. I'd prefer to write it in c#. 有谁知道如何为SQL Server 2005创建自定义分词系统的信息。我更喜欢用c#编写它。 I need to be able to search on terms such as 'c#', 'f#' etc but the '#' character is a word breaker in the English (UK) word breaker component and can't be changed in any other way. 我需要能够搜索诸如“ c#”,“ f#”等术语,但是“#”字符是英语(英国)分词系统中的分词系统,不能以其他任何方式进行更改。

I have found the following article which provides an incomplete (the IWordSink interface is missing) sample and references an article that is no longer available. 我发现以下文章提供了不完整的示例(缺少IWordSink接口),并引用了不再可用的文章。 This article also doesn't provide any of the thread-checking code I'd expect to see. 本文还没有提供我希望看到的任何线程检查代码。 http://bytes.com/topic/sql-server/answers/864969-custom-wordbreaker-sql-server-full-text http://bytes.com/topic/sql-server/answers/864969-custom-wordbreaker-sql-server-full-text

Alternately, someone could point me to how to decompile the existing English word breaker 'langwrbk.dll' so I could make the little change I need the existing code? 或者,有人可以指出我如何反编译现有的英文单词breaker'langwrbk.dll',这样我可以做一些小的改动,使我需要现有的代码?

Thanks 谢谢

Kirk 柯克

The technology for word breakers and stemmers is common across all the Microsoft Search products, including SQL Server Fulltext. 断字器和词干分析器技术在所有Microsoft Search产品(包括SQL Server Fulltext)中都是通用的。 The Search SDK is well and fully documented see Extending the Index and Windows Search Developer's Guide . Search SDK很好并且有完整的文档,请参阅“ 扩展索引”和“ Windows Search开发人员指南”

Reverse engineering the langwrbk.dll would be against the user license you agreed on, as is very clearly stipulated that you cannot reverse engineer, decompile or disassemble the Software. 逆向工程langwrbk.dll将违反您同意的用户许可,因为非常清楚地规定您不能对软件进行逆向工程,反编译或反汇编。 Not to mention that is code signed and you wouldn't be able to 'make a little change'... 更不用说这是代码签名的,您将无法“进行一些更改” ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM