SearchModelFactory.SemanticConfiguration 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.
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.