private void DeleteItem(ISearchIndex index, IIndexableId indexableId, string itemPath)
        {
            WriteVerbose($"Removing item {itemPath} from index {index.Name}.");
            var job = IndexCustodian.DeleteItem(index, indexableId);

            if (job != null && AsJob)
            {
                WriteVerbose($"Background job created: {job.Name}");
                WriteObject(job);
            }
        }
예제 #2
0
        public IJob DeleteItem(ISearchIndex index, IIndexableId indexableId)
        {
            var job = IndexCustodian.DeleteItem(index, indexableId);

            return(job == null ? null : new SpeJob(job));
        }