共用方式為


SearchModelFactory.FacetResult Method

Definition

Initializes a new instance of FacetResult.

public static Azure.Search.Documents.Models.FacetResult FacetResult (long? count = default, System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IList<Azure.Search.Documents.Models.FacetResult>> facets = default, System.Collections.Generic.IReadOnlyDictionary<string,object> additionalProperties = default);
static member FacetResult : Nullable<int64> * System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IList<Azure.Search.Documents.Models.FacetResult>> * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Azure.Search.Documents.Models.FacetResult
Public Shared Function FacetResult (Optional count As Nullable(Of Long) = Nothing, Optional facets As IReadOnlyDictionary(Of String, IList(Of FacetResult)) = Nothing, Optional additionalProperties As IReadOnlyDictionary(Of String, Object) = Nothing) As FacetResult

Parameters

count
Nullable<Int64>

The approximate count of documents falling within the bucket described by this facet.

facets
IReadOnlyDictionary<String,IList<FacetResult>>

The nested facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not contain any nested facets.

additionalProperties
IReadOnlyDictionary<String,Object>

Additional Properties.

Returns

A new FacetResult instance for mocking.

Applies to