SearchModelFactory.HybridSearch Method

Definition

The query parameters to configure hybrid search behaviors.

public static Azure.Search.Documents.Models.HybridSearch HybridSearch(int? maxTextRecallSize = default, Azure.Search.Documents.Models.HybridCountAndFacetMode? countAndFacetMode = default);
static member HybridSearch : Nullable<int> * Nullable<Azure.Search.Documents.Models.HybridCountAndFacetMode> -> Azure.Search.Documents.Models.HybridSearch
Public Shared Function HybridSearch (Optional maxTextRecallSize As Nullable(Of Integer) = Nothing, Optional countAndFacetMode As Nullable(Of HybridCountAndFacetMode) = Nothing) As HybridSearch

Parameters

maxTextRecallSize
Nullable<Int32>

Determines the maximum number of documents to be retrieved by the text query portion of a hybrid search request. Those documents will be combined with the documents matching the vector queries to produce a single final list of results. Choosing a larger maxTextRecallSize value will allow retrieving and paging through more documents (using the top and skip parameters), at the cost of higher resource utilization and higher latency. The value needs to be between 1 and 10,000. Default is 1000.

countAndFacetMode
Nullable<HybridCountAndFacetMode>

Determines whether the count and facets should includes all documents that matched the search query, or only the documents that are retrieved within the 'maxTextRecallSize' window.

Returns

A new HybridSearch instance for mocking.

Applies to