IndexRepositoryAddToRepository Method (Index)
Adds an index to the index repository.

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

Parameters

index
Type: GroupDocs.SearchIndex
The index to add.
Examples
The example demonstrates how to add an index to the index repository.
C#
Index index = new Index();

IndexRepository indexRepository = new IndexRepository();

indexRepository.AddToRepository(index);
See Also