Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

ContentIndexer.Instance.Delete not applying.

$
0
0

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.


Viewing all articles
Browse latest Browse all 6894

Trending Articles