다음을 통해 공유


SearchModelFactory.SearchResults<T> Method

Definition

Initializes a new instance of SearchResults.

public static Azure.Search.Documents.Models.SearchResults<T> SearchResults<T> (System.Collections.Generic.IEnumerable<Azure.Search.Documents.Models.SearchResult<T>> values, long? totalCount, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<Azure.Search.Documents.Models.FacetResult>> facets, double? coverage, Azure.Response rawResponse, Azure.Search.Documents.Models.SemanticSearchResults semanticSearch, Azure.Search.Documents.Models.DebugInfo debugInfo);
static member SearchResults : seq<Azure.Search.Documents.Models.SearchResult<'T>> * Nullable<int64> * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<Azure.Search.Documents.Models.FacetResult>> * Nullable<double> * Azure.Response * Azure.Search.Documents.Models.SemanticSearchResults * Azure.Search.Documents.Models.DebugInfo -> Azure.Search.Documents.Models.SearchResults<'T>
Public Shared Function SearchResults(Of T) (values As IEnumerable(Of SearchResult(Of T)), totalCount As Nullable(Of Long), facets As IDictionary(Of String, IList(Of FacetResult)), coverage As Nullable(Of Double), rawResponse As Response, semanticSearch As SemanticSearchResults, debugInfo As DebugInfo) As SearchResults(Of T)

Type Parameters

T

The .NET type that maps to the index schema. Instances of this type can be retrieved as documents from the index.

Parameters

values
IEnumerable<SearchResult<T>>

The search result values.

totalCount
Nullable<Int64>

The total count of results found by the search operation.

facets
IDictionary<String,IList<FacetResult>>

The facet query results for the search operation.

coverage
Nullable<Double>

A value indicating the percentage of the index that was included in the query

rawResponse
Response

The raw Response that obtained these results from the service.

semanticSearch
SemanticSearchResults

The semantic search result.

debugInfo
DebugInfo

Debug information that applies to the search results as a whole.

Returns

A new SearchResults instance for mocking.

Applies to