C# Class ScrewTurn.Wiki.SearchEngine.SearchResult

Represents a search result.
Instance and static members are not thread-safe.
Datei anzeigen Open project: mono/ScrewTurnWiki Class Usage Examples

Protected Properties

Property Type Description
document IDocument
matches WordInfoCollection
relevance Relevance

Public Methods

Method Description
SearchResult ( IDocument document ) : System

Initializes a new instance of the SearchResult class.

The relevance is initially set to 0.

ToString ( ) : string

Gets a string representation of the current instance.

Method Details

SearchResult() public method

Initializes a new instance of the SearchResult class.
The relevance is initially set to 0.
If is null.
public SearchResult ( IDocument document ) : System
document IDocument The document the result refers to.
return System

ToString() public method

Gets a string representation of the current instance.
public ToString ( ) : string
return string

Property Details

document protected_oe property

The document the result refers to.
protected IDocument document
return IDocument

matches protected_oe property

The matches in the document.
protected WordInfoCollection matches
return WordInfoCollection

relevance protected_oe property

The result relevance.
protected Relevance,ScrewTurn.Wiki.SearchEngine relevance
return Relevance