IndexRepositoryAddToRepository Method (Index) |
Adds an index to the index repository.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.2
Syntaxpublic void AddToRepository(
Index index
)
Public Sub AddToRepository (
index As Index
)
public:
void AddToRepository(
Index^ index
)
member AddToRepository :
index : Index -> unit
Parameters
- index
- Type: GroupDocs.SearchIndex
The index to add.
Examples
The example demonstrates how to add an index to the index repository.
Index index = new Index();
IndexRepository indexRepository = new IndexRepository();
indexRepository.AddToRepository(index);
See Also