【发布时间】:2013-07-30 14:34:26
【问题描述】:
在内容交付服务器上重建索引时,搜索该索引的任何组件都会失败(炸毁)。 如何在不导致搜索组件不可用的情况下重建索引?此外,是否有标准方法来处理此问题?
我用来定期执行重新索引的代码:
Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase(DBName);
Index index = db.Indexes[IndexName];
index.GetSearcher(db).Close();
index.Rebuild(db);
提供一点上下文:
- Sitecore 版本 - 6.4.1(修订版 110324)
- 有必要重建索引,因为它包含来自 Sitecore 的一些数据和来自外部系统的一些数据。
【问题讨论】:
标签: sitecore lucene.net sitecore6