SearchModelFactory.SemanticConfiguration Method

Definition

Defines a specific configuration to be used in the context of semantic capabilities.

public static Azure.Search.Documents.Indexes.Models.SemanticConfiguration SemanticConfiguration(string name = default, Azure.Search.Documents.Indexes.Models.SemanticPrioritizedFields prioritizedFields = default, Azure.Search.Documents.Indexes.Models.RankingOrder? rankingOrder = default);
static member SemanticConfiguration : string * Azure.Search.Documents.Indexes.Models.SemanticPrioritizedFields * Nullable<Azure.Search.Documents.Indexes.Models.RankingOrder> -> Azure.Search.Documents.Indexes.Models.SemanticConfiguration
Public Shared Function SemanticConfiguration (Optional name As String = Nothing, Optional prioritizedFields As SemanticPrioritizedFields = Nothing, Optional rankingOrder As Nullable(Of RankingOrder) = Nothing) As SemanticConfiguration

Parameters

name
String

The name of the semantic configuration.

prioritizedFields
SemanticPrioritizedFields

Describes the title, content, and keyword fields to be used for semantic ranking, captions, highlights, and answers. At least one of the three sub properties (titleField, prioritizedKeywordsFields and prioritizedContentFields) need to be set.

rankingOrder
Nullable<RankingOrder>

Specifies the score type to be used for the sort order of the search results.

Returns

A new SemanticConfiguration instance for mocking.

Applies to