Keyoti SearchUnit API Docs
ParserProvider Class
API DocumentationKeyoti.SearchEngine.DocumentsParserProvider
Keyoti SearchUnit v6
Provides a parser for different document types.
Declaration Syntax
C#Visual Basic
public class ParserProvider
Public Class ParserProvider
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ParserProvider(Configuration)
Creates an instance of the ParserProvider class.

Configuration
Gets the instance of the Configuration class that holds the settings to be used.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetParser(String)
Gets a new parser object for the specified mimeType.

GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
GetParser is used to return a Parser subclass for the specified mimeType. The mimeType is initially identified for a document based on the Response.ContentType returned from the server or from Configuration.fileTypesSettings for documents read using the file-system. Subclassing this class is necessary when adding new document parsers to the build system.
Examples
Suppose a new parser is written for your organizations XML files - called XMLDocumentParser. Of course this parser must now be used for these files, to do this ParserProvider is subclassed - called CustomParserProvider. To make the Document class use the new CustomParserProvider one way would be to subclass DocumentIndex and override CreateNewDocument method to return a new Document object with a preset ParserProvider property. This causes CustomParserProvider to be instantiated and passed to each Document object as it is indexed. In CustomParserProvider the GetParser is overridden to return the XMLDocumentParser for the XML mime type.
Inheritance Hierarchy
Object
ParserProvider

Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2022.8.22.610