GroupDocsGists
10/24/2017 - 1:26 PM

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

// For complete examples and data files, please go to https://github.com/atirtahirgroupdocs/GroupDocs.Search-for-.NET
IndexRepository repository = new IndexRepository();
repository.OperationFinished += Utilities.index_OperationFinished;

repository.AddToRepository(Utilities.indexPath);
repository.AddToRepository(Utilities.indexPath2);

// Update all indexes in repository asynchronously
repository.UpdateAsync();