EventHub Class |
Namespace: GroupDocs.Search.Events
The EventHub type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | ErrorOccurred |
Occurs when an error happens during an index operation.
|
![]() ![]() | FileIndexing |
Occurs when a document is going to be indexed.
|
![]() ![]() | OperationFinished |
Occurs when an index operation is finished.
|
![]() ![]() | OperationProgressChanged |
Occurs when the progress of indexing or update operation is changed.
|
![]() ![]() | PasswordRequired |
Occurs when a document requires password for opening.
|
![]() ![]() | SearchPhaseCompleted |
Occurs when the search phase is completed.
|
![]() ![]() | StatusChanged |
Occurs when the index status changes.
|
string indexFolder = @"c:\MyIndex\"; string documentsFolder = @"c:\MyDocuments\"; string query = "Einstein"; // Creating an index Index index = new Index(indexFolder); // Subscribing to the event index.Events.ErrorOccurred += (sender, args) => { Console.WriteLine(args.Message); }; // Indexing documents from the specified folder index.Add(documentsFolder); // Searching in the index SearchResult result = index.Search(query);