// For complete examples and data files, please go to https://github.com/atirtahirgroupdocs/GroupDocs.Search-for-.NET
// Create index
Index index = new Index(Utilities.indexPath);
// Add documents to index
index.AddToIndex(Utilities.documentsPath);
// Searching for any document in index that contain inputted word in file content
SearchResults searchResults = index.Search("Content:" + searchString);
// List of found files
foreach (DocumentResultInfo documentResultInfo in searchResults)
{
Console.Write(documentResultInfo.FileName + "\n");
}