C# Class ScrewTurn.Wiki.SearchResultRow

Represents a search result in a format useful for screen display.
Mostrar archivo Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
CreateInstance ( SearchResult result ) : SearchResultRow

Creates a new instance of the T:SearchResultRow class.

SearchResultRow ( string link, string type, string title, float relevance, string formattedExcerpt ) : System

Initializes a new instance of the T:CompactSearchResult class.

Private Methods

Method Description
BuildFormattedExcerpt ( List matches, string input ) : string

Builds the formatted excerpt for a search match.

GetExcerpt ( System.PageInfo page, WordInfoCollection matches ) : string

Gets the formatted page excerpt.

GetExcerpt ( System.PageInfo page, int messageID, WordInfoCollection matches ) : string

Gets the formatted message excerpt.

GetKeywordsForQueryString ( WordInfoCollection matches ) : string

Gets a list of keywords formatted for the query string.

Method Details

CreateInstance() public static method

Creates a new instance of the T:SearchResultRow class.
public static CreateInstance ( SearchResult result ) : SearchResultRow
result ScrewTurn.Wiki.SearchEngine.SearchResult The result to use.
return SearchResultRow

SearchResultRow() public method

Initializes a new instance of the T:CompactSearchResult class.
public SearchResultRow ( string link, string type, string title, float relevance, string formattedExcerpt ) : System
link string The link.
type string The result type.
title string The title.
relevance float The relevance (%).
formattedExcerpt string The formatted page excerpt.
return System