public async Task IndexAndSearch() { var f = new FulltextSearch(@"C:\src\meetings"); await f.Index(); Console.WriteLine(String.Join("\r\n", f.Search("Grimme"))); }
protected override IEnumerable <IResult> GetResults(IQuery query) { if (query.Text.FirstWordIs("notes", out var searchTerm)) { if (index.IsCompleted) { var files = fulltextSearch.Search(searchTerm, 64); return(files.Select(_ => ToResult(_))); } } return(Enumerable.Empty <IResult>()); }