public void Delete(DeletedEntry entry) { lock (transaction) { indexer.Delete(entry); } }
public virtual void ReindexDescendants(ContentItem root, bool clearBeforeReindex) { DoWork(() => { if (clearBeforeReindex) { indexer.Delete(root.ID); } root = persister.Get(root.ID); indexer.Update(root); ReindexChildren(root.ID); }); }
public virtual void ReindexDescendants(int rootID, bool clearBeforeReindex) { Execute(new Work { Name = "Reindex descendants of #" + rootID, Action = () => { if (clearBeforeReindex) { indexer.Delete(rootID); } Reindex(rootID, true); } }); }
internal static void DeleteFromIndex(ContentReference contentLink) { if (ContentReference.IsNullOrEmpty(contentLink)) { return; } EPiIndexer.Delete(contentLink); }
internal static void DeleteFromIndex(object sender, ContentEventArgs e) { if (e?.ContentLink == null) { return; } Logger.Debug($"Raising event DeleteFromIndex for '{e.ContentLink}'"); EPiIndexer.Delete(e.ContentLink); }
private void DeleteLocal(ContentItem local) { local.State = ContentState.Deleted; _security.ScopeEnabled = false; if (_indexer != null) { _indexer.Delete(local.ID); } _persister.Repository.Delete(local); // bypass persister _security.ScopeEnabled = true; }
/// <summary>Delets an item from the index and any descendants.</summary> /// <param name="itemID">The id of the item to delete.</param> public virtual void Delete(int itemID) { indexer.Delete(itemID); }