DocumentSearchResult<T> Constructor

Definition

Initializes a new instance of the DocumentSearchResult class. This constructor is intended to be used for test purposes, since the properties of this class are immutable.

public DocumentSearchResult (System.Collections.Generic.IList<Microsoft.Azure.Search.Models.SearchResult<T>> results, long? count, double? coverage, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<Microsoft.Azure.Search.Models.FacetResult>> facets, Microsoft.Azure.Search.Models.SearchContinuationToken continuationToken);
new Microsoft.Azure.Search.Models.DocumentSearchResult<'T> : System.Collections.Generic.IList<Microsoft.Azure.Search.Models.SearchResult<'T>> * Nullable<int64> * Nullable<double> * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.FacetResult>> * Microsoft.Azure.Search.Models.SearchContinuationToken -> Microsoft.Azure.Search.Models.DocumentSearchResult<'T>
Public Sub New (results As IList(Of SearchResult(Of T)), count As Nullable(Of Long), coverage As Nullable(Of Double), facets As IDictionary(Of String, IList(Of FacetResult)), continuationToken As SearchContinuationToken)

Parameters

results
IList<SearchResult<T>>

The sequence of results returned by the query.

count
Nullable<Int64>

The total count of results found by the search operation, or null if the count was not requested.

coverage
Nullable<Double>

A value indicating the percentage of the index that was included in the query, or null if MinimumCoverage was not set in the SearchParameters.

facets
IDictionary<String,IList<FacetResult>>

The facet query results for the search operation, or null if the query did not include any facet expressions.

continuationToken
SearchContinuationToken

A continuation token that is used to continue fetching search results. This is necessary when Azure Cognitive Search cannot fulfill a search request with a single response.

Applies to