Index Constructor (String, IndexSettings)
Initializes a new instance of the Index class. Creates a new index with particular settings or opens an existing index on disk.

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

Parameters

indexFolder
Type: SystemString
The index folder path.
settings
Type: GroupDocs.SearchIndexSettings
The index settings object.
Examples
The example demonstrates how to create an index on a disk with particular index settings.
C#
string indexFolder = @"c:\MyIndex\";
IndexSettings settings = new IndexSettings();
settings.IndexType = IndexType.CompactIndex;
Index index = new Index(indexFolder, settings);
See Also