SearchResult<T> Constructors

Definition

Overloads

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.

SearchResult<T>()

Initializes a new instance of the SearchResult class.

public SearchResult ();
Public Sub New ()

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

Initializes a new instance of the SearchResult class.

public SearchResult (T document = null, double score = 0, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> highlights = null);
new Microsoft.Azure.Search.Models.SearchResult<'T> : 'T * double * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> Microsoft.Azure.Search.Models.SearchResult<'T>
Public Sub New (Optional document As T = null, Optional score As Double = 0, Optional highlights As IDictionary(Of String, IList(Of String)) = null)

Parameters

document
T

The document found by the search query.

score
Double

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

highlights
IDictionary<String,IList<String>>

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.

Applies to