IndexAdd Method (String) |
Namespace: GroupDocs.Search
string indexFolder = @"c:\MyIndex\"; string folderPath = @"c:\MyDocuments\"; string filePath = @"c:\Documents\MyFile.txt"; Index index = new Index(indexFolder); // Creating index in the specified folder index.Add(folderPath); // Indexing documents in the specified folder index.Add(filePath); // Indexing the specified document