Index Constructor (String, Boolean)
Initializes a new instance of the Index class. Loads an existing index from disk if overwriteIfExists is false; creates a new index on disk otherwise.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.6
Syntax
public Index(
	string indexFolder,
	bool overwriteIfExists
)

Parameters

indexFolder
Type: SystemString
The index folder path.
overwriteIfExists
Type: SystemBoolean
The flag of overwriting the index folder.
Examples
The example demonstrates how to create a new index in a folder that already contains another index.
C#
string indexFolder = @"c:\MyIndex\";
Index index = new Index(indexFolder, true);
See Also