IndexOptimize Method |
Namespace: GroupDocs.Search
string indexFolder = @"c:\MyIndex\"; string documentsFolder1 = @"c:\MyDocuments1\"; string documentsFolder2 = @"c:\MyDocuments2\"; string documentsFolder3 = @"c:\MyDocuments3\"; Index index = new Index(indexFolder); // Creating index in the specified folder index.Add(documentsFolder1); // Indexing documents from the specified folder index.Add(documentsFolder2); // Each call to Add creates at least one new segment in the index index.Add(documentsFolder3); // Merging segments of the index index.Optimize();