SearchResult<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>()
- Source:
- SearchResult.cs
Initializes a new instance of the SearchResult class.
public SearchResult ();
Public Sub New ()
Applies to
SearchResult<T>(T, Double, IDictionary<String,IList<String>>)
- Source:
- SearchResult.cs
Initializes a new instance of the SearchResult class.
public SearchResult (T document = default, double score = 0, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> highlights = default);
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 = Nothing, Optional score As Double = 0, Optional highlights As IDictionary(Of String, IList(Of String)) = Nothing)
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
Azure SDK for .NET