Added defensive logic to File Indexer for scenarios where file does not exist on disk. Added ability to reset the search index prior to reindexing.
This commit is contained in:
@ -235,9 +235,9 @@ namespace Oqtane.Providers
|
||||
return text;
|
||||
}
|
||||
|
||||
public Task ResetIndex()
|
||||
public Task DeleteSearchContent(int siteId)
|
||||
{
|
||||
_searchContentRepository.DeleteAllSearchContent();
|
||||
_searchContentRepository.DeleteAllSearchContent(siteId);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user