读书人

Lucene 2.4更新索引的步骤(Update Ind

发布时间: 2012-12-23 11:28:15 作者: rapoo

Lucene 2.4更新索引的方法(Update Index)
????? } catch (IOException e) {
??????? System.out.println(e);
????? }
??? }
}

?

?

?

?

评论:

你这么每次删除都要整个索引遍历一边,数据量大时效率可想而知。
删除用DeleteDocuments(Term term)
而不是DeleteDocument(int docId)

?

?

文章出自:http://hi.baidu.com/axhack/blog/item/6a101b1822940eb34bedbc64.html/cmtid/51f461036bcc7986d43f7cc6

?

?

?

?

读书人网 >PowerDesigner

热点推荐