C# Class Roadkill.Core.Mvc.ViewModels.SearchResultViewModel

Contains data for a single search result from a search query.
Mostrar archivo Open project: LocalGovDigital/pipeline Class Usage Examples

Private Properties

Property Type Description
EnsureFieldExists void
EnsureFieldsExist void

Public Methods

Method Description
SearchResultViewModel ( ) : System
SearchResultViewModel ( Lucene.Net.Documents.Document document, Lucene.Net.Search.ScoreDoc scoreDoc ) : System
TagsAsList ( ) : IEnumerable

Used by the search results view, for the list of tags.

Private Methods

Method Description
EnsureFieldExists ( IList fields, string fieldname ) : void
EnsureFieldsExist ( Lucene.Net.Documents.Document document ) : void

Method Details

SearchResultViewModel() public method

public SearchResultViewModel ( ) : System
return System

SearchResultViewModel() public method

public SearchResultViewModel ( Lucene.Net.Documents.Document document, Lucene.Net.Search.ScoreDoc scoreDoc ) : System
document Lucene.Net.Documents.Document
scoreDoc Lucene.Net.Search.ScoreDoc
return System

TagsAsList() public method

Used by the search results view, for the list of tags.
public TagsAsList ( ) : IEnumerable
return IEnumerable