GroupDocsGists
10/24/2017 - 1:27 PM

Examples-CSharp-GroupDocs.Search.Examples.CSharp-Indexing-CreateWithOverwritingExistedIndex.cs

// For complete examples and data files, please go to https://github.com/atirtahirgroupdocs/GroupDocs.Search-for-.NET
// Create index on disk. If Index folder is not empty it will be rewited
Index index1 = new Index(Utilities.indexPath, true);

// Create index on disk using Index Repository
IndexRepository repository = new IndexRepository();
Index index2 = repository.Create(Utilities.indexPath);