mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Rename IndexSearcher
This commit is contained in:
parent
b1a0ddfe2f
commit
b03ee66646
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
Loading…
Reference in a new issue