贫民窟里的程序高手

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年3月13日

摘要: 本文转载自:http://www.cnblogs.com/kwklover/archive/2007/07/28/834819.html在Lucene.net实现自定义排序,需要实现两个Lucene.Net.Search的两个接口:public interface SortComparatorSource{ ScoreDocComparator NewComparator(IndexReader reader , System.String fieldname) ;}public interface ScoreDocComparator{ int Compare(ScoreDoc i , Sc 阅读全文
posted @ 2012-03-13 16:42 贫民窟里的程序高手 阅读(253) 评论(0) 推荐(0)

摘要: string INDEX_STORE_PATH = Server.MapPath("index"); //INDEX_STORE_PATH 为索引存储目录 string keyword = TextBox2.Text; //搜索内容 Hits myhit = null; IndexSearcher mysea = new IndexSearcher(INDEX_STORE_PATH); QueryParser q = new QueryParser("indexconten... 阅读全文
posted @ 2012-03-13 16:40 贫民窟里的程序高手 阅读(247) 评论(0) 推荐(0)

摘要: 本文转载自:http://blog.csdn.net/dongdongleng/article/details/6058416这篇文章是介绍lucene.net和盘古分词的简单的实现调用 。建立索引,搜索,盘古分词的基类如下:[c-sharp] view plaincopyusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls 阅读全文
posted @ 2012-03-13 16:28 贫民窟里的程序高手 阅读(1393) 评论(0) 推荐(0)