.NET Core library for searching through Voidtool's Everything
Intutive, thread safe, search
var client = new EverythingClient();
var result = await client.SearchAsync("tickets.pdf");
var files = result.Items.OfType<FileResultItem>();
foreach (var file in files)
{
var fileName = file.Name;
var size = file.Size;
var created = file.Created;
}
Get more control by providing SearchOptions
and CancellationToken
to the search:
var options = new SearchOptions
{
MatchCase = true,
RequestFlags = RequestFlags.FileName,
Sort = Sort.DateModifiedDescending
};
Out of the box query builder for Everything's search syntax
var executables = await client.SearchAsync(q => q
.Executables("everything")
.OfLargeSize()
.Modified("2018"));
var pictures = await client.SearchAsync(q => q
.Pictures("xmas")
.OfAnySize()
.CreatedAt(new DateTime(2017, 12, 24)));
Not a fan of the high levevl client? Build one yourself by using LowLevelSdk
(the unaltered methods provided by everythings SDK) or EverythingSdk
which is the same, but with .NET-like method names
EverythingSdk.Search = query;
EverythingSdk.MatchCase = true;
EverythingSdk.Query(wait: true);
EverythingSdk.TryGetSize(1, out var size);