public IndexDeletionPolicy GetPolicy(Lucene.Net.Store.Directory directory) { var resolved = _directories.GetOrAdd(directory.GetLockID(), s => new SnapshotDeletionPolicy(new KeepOnlyLastCommitDeletionPolicy())); return resolved; }