Remove hidden files from indexer results (#4325)

* Added functionality to not display hidden files

* Added interfaces for seperating db layer

* Updated variable naming and refactored Database connection class

* Added tests for WindowsSearchAPI class

* Fixed nit with braces

* Added function to test that all connections from database are closed
This commit is contained in:
Divyansh Srivastava
2020-06-18 15:42:28 -07:00
committed by GitHub
parent 7ed03c8b90
commit a21a3827fd
6 changed files with 225 additions and 63 deletions

View File

@@ -30,7 +30,7 @@ namespace Microsoft.Plugin.Indexer
private PluginJsonStorage<Settings> _storage;
// To access Windows Search functionalities
private readonly WindowsSearchAPI _api = new WindowsSearchAPI();
private readonly WindowsSearchAPI _api = new WindowsSearchAPI(new OleDBSearch());
// Reserved keywords in oleDB
private string ReservedStringPattern = @"^[\/\\\$\%]+$";