London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

ContentIndexer.Instance.Delete not applying.

Vote:
 

Hi! Im working with a epi find indexing bug for a client. As a quick fix I decided to do indexing "manually" at PublishedPage events (If I dont solve that I might write another post about it =))

DataFactory.Instance.PublishedPage += ClearFindIndex;
private void ClearFindIndex(object sender, PageEventArgs args){
var content = args.Content;
            if(content == null)
                return;

            if (content.IsDisabledFromFindIndexing())
	        {
                ContentIndexer.Instance.Delete(content);
            }
	        else
	        {
                ContentIndexer.Instance.Index(content);
            }
}

The response from the ContentIndexer.Instance.Delete-method is positive (Found: True, Ok: true etc.). Still the content shows up in the index. What could possibly be wrong here? I am on a dev index.

#172656
Edited, Dec 07, 2016 13:31
Vote:
 

  ContentIndexer.Instance.Conventions.ForInstancesOf<GenericMedia>().ShouldIndex(x => false);

#176954
Mar 30, 2017 16:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.