IndexRepository Class
IndexRepository class is designed to combine multiple indexes and perform common operations on them.
Inheritance Hierarchy
SystemObject
  GroupDocs.SearchIndexRepository

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 18.6
Syntax
public class IndexRepository

The IndexRepository type exposes the following members.

Constructors
  NameDescription
Public methodIndexRepository
Initializes a new instance of the IndexRepository class
Properties
  NameDescription
Public propertyIndexes
Gets Indexes Array.
Methods
  NameDescription
Public methodCode exampleAddToRepository(String)
Adds Index to repository from disk.
Public methodCode exampleAddToRepository(Index)
Adds Index to repository.
Public methodCode exampleCreate
Creates new index in memory.
Public methodCode exampleCreate(String)
Creates new index. Index folder will be cleaned before index creating.
Public methodCode exampleCreate(IndexingSettings)
Creates new index in memory with selected indexing settings.
Public methodCode exampleCreate(String, IndexingSettings)
Creates new index with selected indexing settings. Index folder will be cleaned before index creating.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleSearch(String)
Searches in all indexes in repository with default search parameters.
Public methodCode exampleSearch(String, SearchParameters)
Searches in all indexes in repository.
Public methodSearch(SearchQuery, SearchParameters)
Searches in all indexes in repository.
Public methodSearch(String, SearchParameters, Cancellation)
Searches in all indexes in repository.
Public methodSearch(SearchQuery, SearchParameters, Cancellation)
Searches in all indexes in repository.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleUpdate
Updates all indexes in repository.
Public methodCode exampleUpdateAsync
Updates all indexes in repository asynchronously.
Events
  NameDescription
Public eventErrorHappened
Occurs when some error during index operation is happened. Error examples than can be happened: - Exception during extraction text from document. - Library can't access to the document. - Library can't update index files.
Public eventFileIndexing
Occurs before file indexing.
Public eventOperationFinished
Occurs when any index operation is finished. List of operations that call this event: - Adding documents to index is finished. - Updating index is finished.
Public eventOperationProgressChanged
Occurs when progress for indexing or updating operation changed.
Public eventPasswordRequired
Occurs when document requires password for open.
See Also