原子性。
Lucene在IndexWriter上有一个UpdateDocument方法,它将删除现有文档并添加一个新文档。与显式调用DeleteDocuments然后调用AddDocument相比,使用此方法有什么好处吗?
update
是原子的,而delete
+add
是独立的、孤立的调用。
Lucene在IndexWriter上有一个UpdateDocument方法,它将删除现有文档并添加一个新文档。与显式调用DeleteDocuments然后调用AddDocument相比,使用此方法有什么好处吗?
update
是原子的,而delete
+add
是独立的、孤立的调用。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium