<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>91.BLOG建设</title><link>http://notemper2x.cndev.org/category/738.aspx</link><description>91.BLOG建设</description><managingEditor>没脾气2x</managingEditor><dc:language>zh-CHS</dc:language><generator>.Text Version 0.95.2004.101</generator><item><dc:creator>没脾气2x</dc:creator><title>【工作】Dottext.Search 搜索问题</title><link>http://notemper2x.cndev.org/archive/2005/08/27/43344.aspx</link><pubDate>2005-08-27 07:14:00Z</pubDate><guid>http://notemper2x.cndev.org/archive/2005/08/27/43344.aspx</guid><wfw:comment>http://notemper2x.cndev.org/comments/43344.aspx</wfw:comment><comments>http://notemper2x.cndev.org/archive/2005/08/27/43344.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://notemper2x.cndev.org/comments/commentRss/43344.aspx</wfw:commentRss><trackback:ping>http://notemper2x.cndev.org/services/trackbacks/43344.aspx</trackback:ping><description>&lt;P&gt;这两天给 Dottext 上面添加 Dottext.Search 的搜索功能&lt;/P&gt;
&lt;P&gt;搜索功能使用 Lucene.NET 的开源库进行的。&lt;BR&gt;现在这个开源库的源代码还没有找到。&lt;/P&gt;
&lt;P&gt;后来找到了 Lucene.NET 的中文词法分析源代码。&lt;BR&gt;给 Dottext.Search 加上了支持中文的搜索。（2005.0825）&lt;/P&gt;
&lt;P&gt;可是发现 Dottext.Search 中只能搜索 Post 的内容（数据库里的Text字段），标题却搜索不到。&lt;BR&gt;查看代码发现 Dottext.Search.QueryIndex 的构造函数中在创建 QueryParse 实例出现的问题。&lt;BR&gt;（代码注释： {3F9AEDF7-F489-4760-9BDC-96A1BC2D1292}）&lt;/P&gt;
&lt;P&gt;Lucene.Net.QueryParses.QueryParse 在构建时，似乎只能对某一个 Field 进行搜索，&lt;BR&gt;大概看了一下，没有找到解决办法。&lt;/P&gt;
&lt;P&gt;所以只好在创建索引库时，将 Post 的 Title 也加到 RawText 里去了。&lt;BR&gt;（代码注释：{3F9AEDF7-F489-4760-9BDC-96A1BC2D1292}）&lt;BR&gt;&lt;/P&gt;&lt;img src ="http://notemper2x.cndev.org/aggbug/43344.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>