• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SearchResult

Search Result to be displayed to end user

Inherited "Body" property from SearchDocument may be purposefully left empty for performance purposes.

Inheritance
System.Object
SearchDocumentToDelete
SearchDocument
SearchResult
Inherited Members
SearchDocument.Title
SearchDocument.Description
SearchDocument.Body
SearchDocument.Url
SearchDocument.ModifiedTimeUtc
SearchDocument.IsActive
SearchDocument.Permissions
SearchDocument.Tags
SearchDocument.ToString()
SearchDocumentToDelete.UniqueKey
SearchDocumentToDelete.RoleId
SearchDocumentToDelete.PortalId
SearchDocumentToDelete.TabId
SearchDocumentToDelete.ModuleDefId
SearchDocumentToDelete.ModuleId
SearchDocumentToDelete.AuthorUserId
SearchDocumentToDelete.SearchTypeId
SearchDocumentToDelete.QueryString
SearchDocumentToDelete.Keywords
SearchDocumentToDelete.NumericKeys
SearchDocumentToDelete.CultureCode
SearchDocumentToDelete.ToJsonString()
Namespace: DotNetNuke.Services.Search.Entities
Assembly: DotNetNuke.dll
Syntax
public class SearchResult : SearchDocument

Constructors

| Improve this Doc View Source

SearchResult()

Initializes a new instance of the SearchResult class. Empty Constructor.

Declaration
public SearchResult()

Properties

| Improve this Doc View Source

AuthorName

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.

| Improve this Doc View Source

DisplayModifiedTime

Gets time when Content was last modified (in friendly format).

Declaration
public string DisplayModifiedTime { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

SearchContext

Gets or sets context information such as the type of module that initiated the search can be stored here. This is key-value pair, e.g. "SearchSource","SiteSearch"

Declaration
public IDictionary<string, string> SearchContext { get; set; }
Property Value
Type Description
IDictionary<System.String, System.String>
| Improve this Doc View Source

Snippet

Gets or sets highlighted snippet from document.

Declaration
public string Snippet { get; set; }
Property Value
Type Description
System.String

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS