IndexUpdate Method (UpdateOptions)
Re-indexes documents that have been changed or deleted since last update. Adds new files that have been added to the indexed folders.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.6
Syntax
public void Update(
	UpdateOptions options
)

Parameters

options
Type: GroupDocs.Search.OptionsUpdateOptions
The update options.
Examples
The example demonstrates how to update an index with particular update options.
C#
string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";

Index index = new Index(indexFolder); // Creating index in the specified folder
index.Add(documentsFolder); // Indexing documents from the specified folder

// Delete documents from the documents folder or modify them or add new documents to the folder

UpdateOptions options = new UpdateOptions();
options.Threads = 2; // Setting the number of indexing threads
index.Update(options); // Updating the index
See Also