博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2010年11月2日

摘要: txtPath.Text=IIS://Localhost/W3SVC/AppPools/DefaultAppPool;DirectoryEntry pool = new DirectoryEntry(txtPath.Text.Trim()); lvPoolProties.Items.Clear(); ////显示属性 //foreach (string name in pool.Properties.PropertyNames) //{ // ListViewItem item = new ListViewItem(name+":"+ pool.Properties[nam 阅读全文

posted @ 2010-11-02 13:17 codingsilence 阅读(175) 评论(0) 推荐(0) 编辑

摘要: Analyzer analyzer = new StandardAnalyzer(); IndexWriter writer = new IndexWriter(@"D:/lucene/index/Corpoegeration", analyzer, false);//最后Bool值设置为false,设置为true的话每次全部为覆盖。但是好像无论true还是false,每次都会全部重新建立索引。将来想办法解决----不调用writer.Optimize(); 就不会重建索引。 阅读全文

posted @ 2010-11-02 13:16 codingsilence 阅读(192) 评论(0) 推荐(0) 编辑