IndexRepositoryCreate Method (String)
Creates a new index on disk. The index folder will be cleaned before the index creation.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.8
Syntax
public Index Create(
	string indexFolder
)

Parameters

indexFolder
Type: SystemString
The index folder.

Return Value

Type: Index
The created index.
Examples
The example demonstrates how to create an index on disk through the index repository.
C#
string indexFolder = @"c:\MyIndex\";

IndexRepository indexRepository = new IndexRepository();
Index index = indexRepository.Create(indexFolder);
See Also