IndexRepositoryAddToRepository Method (String) |
Opens and adds an index to the index repository.
Namespace: GroupDocs.SearchAssembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.8.1
Syntaxpublic void AddToRepository(
string indexFolder
)
Public Sub AddToRepository (
indexFolder As String
)
public:
void AddToRepository(
String^ indexFolder
)
member AddToRepository :
indexFolder : string -> unit
Parameters
- indexFolder
- Type: SystemString
The index folder.
Examples
The example demonstrates how to add an index to the index repository.
string indexFolder = @"c:\MyIndex\";
IndexRepository indexRepository = new IndexRepository();
indexRepository.AddToRepository(indexFolder);
See Also