| IndexRepository Class |
Namespace: GroupDocs.Search
The IndexRepository type exposes the following members.
| Name | Description | |
|---|---|---|
| IndexRepository |
Initializes a new instance of the IndexRepository class.
|
| Name | Description | |
|---|---|---|
| Events |
Gets the event hub for subscribing to events.
| |
| Indexes |
Gets the indexes contained in this IndexRepository.
|
| Name | Description | |
|---|---|---|
| AddToRepository(String) |
Opens and adds an index to the index repository.
| |
| AddToRepository(Index) |
Adds an index to the index repository.
| |
| Create |
Creates a new index in memory.
| |
| Create(String) |
Creates a new index on disk.
The index folder will be cleaned before the index creation.
| |
| Create(IndexSettings) |
Creates a new index in memory.
| |
| Create(String, IndexSettings) |
Creates a new index on disk.
The index folder will be cleaned before the index creation.
| |
| Dispose |
Releases all resources used by the IndexRepository.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Finalizes an instance of the IndexRepository class.
(Overrides ObjectFinalize.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Search(String) |
Searches in all indexes of the repository.
| |
| Search(SearchQuery) |
Searches in all indexes of the repository.
| |
| Search(String, SearchOptions) |
Searches in all indexes of the repository.
| |
| Search(SearchQuery, SearchOptions) |
Searches in all indexes of the repository.
| |
| ToString | (Inherited from Object.) | |
| Update |
Updates all indexes in the repository.
| |
| Update(UpdateOptions) |
Updates all indexes in the repository.
|
string indexFolder1 = @"c:\MyIndex\"; string indexFolder2 = @"c:\MyIndex\"; string query = "Einstein"; IndexRepository repository = new IndexRepository(); repository.AddToRepository(indexFolder1); // Loading an existing index repository.AddToRepository(indexFolder2); // Loading another existing index SearchResult result = repository.Search(query); // Searching in indexes of the repository