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:
@ -11,7 +11,7 @@ namespace Oqtane.Services
|
||||
Task<List<SearchResult>> GetSearchResultsAsync(SearchQuery searchQuery);
|
||||
|
||||
Task SaveSearchContent(SearchContent searchContent, Dictionary<string, string> siteSettings);
|
||||
|
||||
Task ResetIndex();
|
||||
|
||||
Task DeleteSearchContent(int siteId);
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,7 @@ namespace Oqtane.Services
|
||||
Task<SearchResults> GetSearchResultsAsync(SearchQuery searchQuery);
|
||||
|
||||
Task<string> SaveSearchContentsAsync(List<SearchContent> searchContents, Dictionary<string, string> siteSettings);
|
||||
|
||||
Task DeleteSearchContentsAsync(int siteId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user