add_to_repository method
Leave feedback
On this page
Adds an index to the index repository.
def add_to_repository(self, index):
...
| Parameter | Type | Description |
|---|---|---|
| index | Index |
The index to add. |
from groupdocs.search import Index, IndexRepository
index = Index("./index1")
repo = IndexRepository()
repo.add_to_repository(index)
Opens and adds an index to the index repository.
def add_to_repository(self, index_folder):
...
| Parameter | Type | Description |
|---|---|---|
| index_folder | str |
The index folder. |
from groupdocs.search import IndexRepository
repo = IndexRepository()
repo.add_to_repository("./index1")
These names call add_to_repository too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
add_to_repository_index |
add_to_repository_index(index) |
add_to_repository_file |
add_to_repository_file(index_folder) |
add_to_repository_string |
add_to_repository_string(index_folder) |
- class
IndexRepository
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.