我们手头有以下问题。我们希望在此过程中以 100% 的读取可用性进行完整的重新索引。从索引中删除旧文档时会出现问题。目前我们正在做某事。像这样:
1) fetch all data from db and update solr index per solrServer.add()
2) get all document ids that were updated and compare them with all the document ids in index
3) delete all documents that are in index but weren´t updated
这似乎可行,但对于这项任务是否有更好/更简单的解决方案?