Rename IndexSearcher

This commit is contained in:
Jeremy Wu 2020-05-25 19:06:09 +10:00
parent b1a0ddfe2f
commit b03ee66646
2 changed files with 6 additions and 6 deletions

View file

@ -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<Result> 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);
}
}
}

View file

@ -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();