久久论坛
若欲直会其道,平常心是道

Browse Site by Tags

Showing related tags and posts accross the entire site.
Sorry, but there are no more tags available to filter with.
  • Lucene.Net 不能删除索引的几点原因

    测试CS2008的BLOGAPI功能:) 近阵子玩Lucene.Net,删除索引的KEY要唯一,而且要Tokened. 以下是当时删除出现问题时找到的一篇文章: Lucene.Net 在删除索引时,经常会出现代码成功执行,但索引并未正直删除的现象,总结一下,要注意以下因素: 1.在创建Term时,注意Term的key一定要是以"词"为单位,否则删除不成功,例如:添加索引时,如果把"d:\doc\id.txt"当 作要索引的字符串索引过了,那么在删除时,如果直接把"d:\doc\id.txt"作为查询的key来创建Term是无效的,应该用Id...
    Posted to 简单生活 (Weblog) by on 04-19-2008
Page 1 of 1 (1 items)
备案中 © CopyRight 2004-2008, Tale99.Com , Inc. All Rights Reserved , Powered by Community Server