' For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Search-for-.NET
Dim index As New Index(Utilities.indexPath)
index.AddToIndex(Utilities.documentsPath)
Dim parameters As New SearchParameters()
Dim regexSearchResults As SearchResults = index.Search(searchString)
For Each documentResultInfo As DocumentResultInfo In regexSearchResults
Console.WriteLine("Document {0} was found with query ""{1}""" & vbLf & "Words list that was found in document:", documentResultInfo.FileName, regexSearchResults)
For Each term As String In documentResultInfo.Terms
Console.Write("{0}; ", term)
Next
Console.WriteLine()
Next