Corrected search index bug preventing dynamic items from being indexed if they didn't have a common aspect

- Added a lock on write operations
- Changed Indexing event handler to intercept all ContentPart instances

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-07-29 15:44:15 -07:00
parent 78493d3f75
commit 8d9925a75b
5 changed files with 69 additions and 49 deletions

View File

@@ -103,8 +103,10 @@ namespace Orchard.Indexing.Services {
// nothing to do ?
if (taskRecords.Length + updateIndexDocuments.Count == 0)
if (taskRecords.Length + updateIndexDocuments.Count == 0) {
Logger.Information("Index update requested, nothing to do");
return;
}
Logger.Information("Processing {0} indexing tasks", taskRecords.Length);