SearchModelFactory.SearchResults<T> Method
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.
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);
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.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) 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.
- facets
- IDictionary<String,IList<FacetResult>>
The facet query results for the search operation.
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.
Returns
A new SearchResults instance for mocking.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應