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...
_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?
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:
_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?