Keyoti SearchUnit API Docs
ParserProvider Class
API DocumentationKeyoti.SearchEngine.DocumentsParserProvider
Keyoti SearchUnit v6
Provides a parser for different document types.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public class ParserProvider
public class ParserProvider
Public Class ParserProvider
Public Class ParserProvider
public ref class ParserProvider
public ref class ParserProvider
type ParserProvider =  class end
type ParserProvider =  class end
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) (Inherited from Object.)
Finalize()()()() (Inherited from Object.)
GetHashCode()()()() (Inherited from Object.)
GetParser(String)
Gets a new parser object for the specified mimeType.

GetType()()()() (Inherited from Object.)
MemberwiseClone()()()() (Inherited from Object.)
ToString()()()() (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: 2015.6.15.120