From b03ee666462313bfe02b7d7e7c754e191e03877a Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 25 May 2020 19:06:09 +1000 Subject: [PATCH] Rename IndexSearcher --- .../Search/SearchManager.cs | 10 +++++----- .../WindowsIndex/{IndexSearcher.cs => IndexSearch.cs} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/{IndexSearcher.cs => IndexSearch.cs} (99%) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index b1d00acbb..4bae801b3 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -12,7 +12,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search private Settings _settings; private PluginInitContext _context; - private IndexSearcher searcher; + private IndexSearch _indexSearch; private QuickFolderAccess quickFolderAccess = new QuickFolderAccess(); @@ -20,7 +20,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search { _settings = settings; _context = context; - searcher = new IndexSearcher(); + _indexSearch = new IndexSearch(); } internal List Search(Query query) @@ -82,7 +82,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search { var queryConstructor = new QueryConstructor(_settings); - return searcher.WindowsIndexSearch(querySearchString, + return _indexSearch.WindowsIndexSearch(querySearchString, queryConstructor.CreateQueryHelper().ConnectionString, queryConstructor.QueryForAllFilesAndFolders, query); @@ -92,7 +92,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search { var queryConstructor = new QueryConstructor(_settings); - return searcher.WindowsIndexSearch(path, + return _indexSearch.WindowsIndexSearch(path, queryConstructor.CreateQueryHelper().ConnectionString, queryConstructor.QueryForTopLevelDirectorySearch, query); @@ -100,7 +100,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search private bool WindowsIndexExists(string path) { - return searcher.PathIsIndexed(path); + return _indexSearch.PathIsIndexed(path); } } } diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs similarity index 99% rename from Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs rename to Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs index 79c5df68c..2648b82be 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearcher.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs @@ -10,7 +10,7 @@ using System.Text.RegularExpressions; namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex { - internal class IndexSearcher + internal class IndexSearch { private readonly object _lock = new object();