// For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Search-for-.NET
// Create index
Index index = new Index(Utilities.indexPath);
// Add documents to index
index.AddToIndex(Utilities.documentsPath);
// Remove some documents from documents path
// Edit some documents in documents path
// Add some new documents to documents path
index.Update();
// removed documents will be marked as deleted in index and will not be added to search results
// Edited documents will be reindexed
// Added documents will be added to index