C# Class ScrewTurn.Wiki.PluginFramework.PageDocument

Represents a page for use with the search engine.
Inheritance: IDocument
Mostrar archivo Open project: mono/ScrewTurnWiki

Public Methods

Method Description
GetDocumentName ( System.PageInfo page ) : string

Gets the document name for a Page.

GetPageName ( string documentName ) : string

Gets the page name from a document name.

PageDocument ( System.PageInfo pageInfo, DumpedDocument dumpedDocument, Tokenizer tokenizer ) : System

Initializes a new instance of the T:PageDocument class.

Tokenize ( string content ) : WordInfo[]

Performs the tokenization of the document content.

Method Details

GetDocumentName() public static method

Gets the document name for a Page.
public static GetDocumentName ( System.PageInfo page ) : string
page System.PageInfo The page.
return string

GetPageName() public static method

Gets the page name from a document name.
public static GetPageName ( string documentName ) : string
documentName string The document name.
return string

PageDocument() public method

Initializes a new instance of the T:PageDocument class.
public PageDocument ( System.PageInfo pageInfo, DumpedDocument dumpedDocument, Tokenizer tokenizer ) : System
pageInfo System.PageInfo The page.
dumpedDocument ScrewTurn.Wiki.SearchEngine.DumpedDocument The dumped document data.
tokenizer Tokenizer The tokenizer.
return System

Tokenize() public method

Performs the tokenization of the document content.
public Tokenize ( string content ) : WordInfo[]
content string The content to tokenize.
return WordInfo[]