November Happy Hour will be moved to Thursday December 5th.

Problem deleting documents from index

Vote:
 

I have built a module that is supposed to delete files from the Find-index as they are de-referenced from a page. It works fine as long as the files arent stored as PageFiles. If the file is a page file the delete operation seems to well and the DeleteResult i get from find has Ok set to true. The file still remain in the index though...

My code is quite simple and looks like this:

                UnifiedFile file = GetFile(document);

                if (file != null && file.IsPageFile() && ShouldDeleteFile(file))
                {
                    deleteResult = _condentIndexer.Delete(file);
                }
                else if (file != null && ShouldDeleteFile(file))
                {
                    deleteResult = _fileIndexer.Delete(file);
                }

_contentIndexer is my instance of IContentIndexer and _fileIndexer is IFileIndexer. I use ContentIndexer to delete page files because apparently you had to use ut in order to index page files. I have however tried using FileIndexer to delete aswell with the same result.Any ideas whats going wrong?

 
#74679
Sep 04, 2013 18:04
* 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.