GroupDocsGists
10/24/2017 - 1:26 PM

Examples-CSharp-GroupDocs.Search.Examples.CSharp-Searching-Facetedsearch.cs

// 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");
}