Class SearchResult
Search Result to be displayed to end user
Inherited "Body" property from SearchDocument may be purposefully left empty for performance purposes.
Inherited Members
Namespace: DotNetNuke.Services.Search.Entities
Assembly: DotNetNuke.dll
Syntax
public class SearchResult : SearchDocument
Constructors
| Improve this Doc View SourceSearchResult()
Initializes a new instance of the SearchResult class. Empty Constructor.
Declaration
public SearchResult()
Properties
| Improve this Doc View SourceAuthorName
Gets or sets optional: Display Name of the Author.
Declaration
public string AuthorName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This may be different form current Display Name when Index was run prior to change in Display Name.
DisplayModifiedTime
Gets time when Content was last modified (in friendly format).
Declaration
public string DisplayModifiedTime { get; }
Property Value
Type | Description |
---|---|
System.String |
DisplayScore
Gets or sets lucene's original Score in String format, e.g. 1.45678 or 0.87642. The score of this document for the query.
Declaration
public string DisplayScore { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This field is more reliable than the float version of Score.
Score
Gets or sets lucene's original Score. The score of this document for the query.
Declaration
public float Score { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
This field may not be reliable as most of the time it contains Nan. Use DisplayScore instead.
SearchContext
Gets or sets context information such as the type of module that initiated the search can be stored here.
Declaration
public IDictionary<string, string> SearchContext { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.String> |
Snippet
Gets or sets highlighted snippet from document.
Declaration
public string Snippet { get; set; }
Property Value
Type | Description |
---|---|
System.String |