// For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Search-for-.NET
// Create index
Index index = new Index(Utilities.indexPath,true);
index.OperationProgressChanged += index_OperationProgressChanged; // event subscribing
// all files from folder and its subfolders will be added to the index
index.AddToIndex(Utilities.documentsPath);
-----------------------------------------------------
static void index_OperationProgressChanged(object sender, GroupDocs.Search.Events.OperationProgressArg e)
{
Console.WriteLine("Current progress: {0}\n{1}", e.ProgressPercentage, e.Message); // event argument contains information about the current progress of operation
}