AddToRepository
Leave feedback
On this page
Adds an index to the index repository.
public void AddToRepository(Index index)
| Parameter | Type | Description |
|---|---|---|
| index | Index | The index to add. |
The example demonstrates how to add an index to the index repository.
Index index = new Index();
IndexRepository indexRepository = new IndexRepository();
indexRepository.AddToRepository(index);
- class Index
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Opens and adds an index to the index repository.
public void AddToRepository(string indexFolder)
| Parameter | Type | Description |
|---|---|---|
| indexFolder | String | The index folder. |
The example demonstrates how to add an index to the index repository.
string indexFolder = @"c:\MyIndex\";
IndexRepository indexRepository = new IndexRepository();
indexRepository.AddToRepository(indexFolder);
- class IndexRepository
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.