Making folder results from the search indexer plugin behave like folder results from folder plugin.

This commit is contained in:
ryanbodrug-microsoft 2020-04-25 09:58:36 -07:00
parent 8f7305e347
commit 2b04d7a92d

View File

@ -86,6 +86,13 @@ namespace Microsoft.Plugin.Indexer
return hide; return hide;
}; };
r.ContextData = searchResult; r.ContextData = searchResult;
//If the result is a directory, then it's display should show a directory.
if(Directory.Exists(path))
{
r.QueryTextDisplay = path;
}
results.Add(r); results.Add(r);
} }
} }