Aracılığıyla paylaş


SearchModelFactory.AutocompleteResults Method

Definition

Initializes a new instance of AutocompleteResults.

public static Azure.Search.Documents.Models.AutocompleteResults AutocompleteResults (double? coverage = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Models.AutocompleteItem> results = default);
static member AutocompleteResults : Nullable<double> * seq<Azure.Search.Documents.Models.AutocompleteItem> -> Azure.Search.Documents.Models.AutocompleteResults
Public Shared Function AutocompleteResults (Optional coverage As Nullable(Of Double) = Nothing, Optional results As IEnumerable(Of AutocompleteItem) = Nothing) As AutocompleteResults

Parameters

coverage
Nullable<Double>

A value indicating the percentage of the index that was considered by the autocomplete request, or null if minimumCoverage was not specified in the request.

results
IEnumerable<AutocompleteItem>

The list of returned Autocompleted items.

Returns

A new AutocompleteResults instance for mocking.

Applies to