public override MigrationResult Migrate(DatabaseStatus preSchemaUpdateStatus) { indexer.Clear(); int count = 0; foreach (var item in repository.Find("VersionOf.ID", null)) { indexer.Update(item); count++; } return(new MigrationResult(this) { UpdatedItems = count }); }
/// <summary>Clears the index.</summary> public virtual void Clear() { indexer.Clear(); }