All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #168 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Deleting a directory in EPiServer that contains indexed files won't remove them from the index

Reported by: andyturl@… Owned by: andyturl@…
Priority: minor Component: EasySearch
Keywords: Cc:


If an indexed page file is located in a folder, when that folder is deleted the files indexed within it will not be removed from the index.
This is because we are hooked into the UnifiedDirectory.UnifiedDirectoryDeleted event so trying to process any files returned from the processed directory is always going to return nothing since they no longer exist. We should probably look at the virtual path and find any files that have this as part of their indexed virtual path and remove them from the index.

Change History

comment:1 Changed 12 years ago by andyturl@…

  • Status changed from new to closed
  • Resolution set to fixed

This is now fixed by performing a search using the virtualpath of the directory that was deleted and removing any returned hits from the index. The virtualpath of a file is now stored as UN_TOKENIZED so needs a reindex to support this.

Note: See HelpUser/Tickets for help on using tickets.