Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
string indexFolder = @"D://Samples/Index";
string documentsFolder = @"D://Samples/Source/Index";
// Creating index in the specified folder
Index index = new Index(indexFolder);
// Indexing documents from the specified folder
// Searching in index
SearchResult result = index.Search("video");
foreach (FoundDocument document in result)
Console.WriteLine("Document Path : " + document.DocumentInfo.FilePath);
Console.WriteLine("Occurance : " + document.OccurrenceCount + "\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.