다음을 통해 공유


SearchResult<T> Class

Definition

Contains a document found by a search query, plus associated metadata.

public class SearchResult<T>
type SearchResult<'T> = class
Public Class SearchResult(Of T)

Type Parameters

T
Inheritance
SearchResult<T>

Constructors

SearchResult<T>()

Initializes a new instance of the SearchResult class.

SearchResult<T>(T, Double, IDictionary<String,IList<String>>)

Initializes a new instance of the SearchResult class.

Properties

Document

Gets the document found by the search query.

Highlights

Gets text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query.

Score

Gets the relevance score of the document compared to other documents returned by the query.

Applies to