static void Main(string[] args) { LuceneApplication myLuceneApp = new LuceneApplication(); // TODO: ADD PATHNAME string indexPath = @"C:\Users\n10104844\source\repos\IFN647-Practical\Practical 5\Week5_Index"; myLuceneApp.CreateIndex(indexPath); System.Console.WriteLine("Adding Documents to Index"); List <string> l = new List <string>(); l.Add("The magical world of oz"); l.Add("The mad, mad, mad, mad world"); l.Add("Possum magic"); foreach (string s in l) { System.Console.WriteLine("Adding " + s + " to Index"); myLuceneApp.IndexText(s); } System.Console.WriteLine("All documents added."); myLuceneApp.CreateParser(); myLuceneApp.CreateSearcher(); myLuceneApp.DisplayResult(myLuceneApp.SearchIndex("world")); // clean up myLuceneApp.CleanUpIndexer(); myLuceneApp.CleanUpSearcher(); System.Console.ReadLine(); }