IndexRepositoryAddToRepository Method (String)
Opens and adds an index to the index repository.

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

Parameters

indexFolder
Type: SystemString
The index folder.
Examples
The example demonstrates how to add an index to the index repository.
C#
string indexFolder = @"c:\MyIndex\";

IndexRepository indexRepository = new IndexRepository();

indexRepository.AddToRepository(indexFolder);
See Also