Пример #1
0
        public async Task IndexAndSearch()
        {
            var f = new FulltextSearch(@"C:\src\meetings");
            await f.Index();

            Console.WriteLine(String.Join("\r\n", f.Search("Grimme")));
        }
Пример #2
0
 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>());
 }