<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; wu-manber</title>
	<atom:link href="http://www.deanlee.cn/tag/wu-manber/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Thu, 22 Mar 2012 06:55:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>基于Wu-Manber算法的快速多关键词搜索</title>
		<link>http://www.deanlee.cn/programming/wu-manber-com/</link>
		<comments>http://www.deanlee.cn/programming/wu-manber-com/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 16:10:57 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[wu-manber]]></category>

		<category><![CDATA[关键词]]></category>

		<category><![CDATA[搜索]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/wu-manber-com/</guid>
		<description><![CDATA[很多应用都需要高性能的多关键词搜索功能，网络&#8221;扫黄&#8221;开始后更是如此，如何在文本内容中快速地搜索出敏感关键字变得越来越重要。
Wu-Manber算法是一个不错的解决方案，尤其是针对包含有大量关键词的搜索。Wu-Manber算法的C语言实现非常丰富，为了方便如C#，VB.net等编程语言使用该算法，我用C/C++写了一个基于改进的Wu-Manber算法的多关键词搜索组件：wu-manber-com。
Download wu-manber-com
使用方法
以vb.net/c#为例，使用前，先运行regsvr32 stringsearch.dll注册该组件，然后将stringsearch.dll添加到项目引用中。调用示例代码如下：
StringSearchLib.WuManber s = new StringSearchLib.WuManber();
s.AddPatterns("keyword1,keyword2,keyword3", ",", false);
int index = s.Search("... some text for searching...");
Console.WriteLine(index);
该控件不会搜寻所有存在的关键词，碰到第一个匹配的关键词，即返回该匹配的关键词在原文中的位置索引,没有找到则返回-1。
]]></description>
			<content:encoded><![CDATA[<p>很多应用都需要高性能的多关键词搜索功能，网络&rdquo;扫黄&rdquo;开始后更是如此，如何在文本内容中快速地搜索出敏感关键字变得越来越重要。</p>
<p><a href="http://webglimpse.net/pubs/TR94-17.pdf" target="_blank">Wu-Manber算法</a>是一个不错的解决方案，尤其是针对包含有大量关键词的搜索。Wu-Manber算法的C语言实现非常丰富，为了方便如C#，VB.net等编程语言使用该算法，我用C/C++写了一个基于改进的<a href="http://webglimpse.net/pubs/TR94-17.pdf" target="_blank">Wu-Manber算法</a>的多关键词搜索组件：<a href="http://code.google.com/p/wu-manber-com/" target="_blank">wu-manber-com</a>。</p>
<p class="download"><a href="http://wu-manber-com.googlecode.com/files/StringSearch_1.01.zip">Download wu-manber-com</a></p>
<p><strong>使用方法</strong></p>
<p>以vb.net/c#为例，使用前，先运行regsvr32 stringsearch.dll注册该组件，然后将stringsearch.dll添加到项目引用中。调用示例代码如下：</p>
<pre class="prettyprint">StringSearchLib.WuManber s = new StringSearchLib.WuManber();
s.AddPatterns("keyword1,keyword2,keyword3", ",", false);
int index = s.Search("... some text for searching...");
Console.WriteLine(index);</pre>
<p>该控件不会搜寻所有存在的关键词，碰到第一个匹配的关键词，即返回该匹配的关键词在原文中的位置索引,没有找到则返回-1。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/wu-manber-com/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

