SemanticConfiguration Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SemanticConfiguration
- com.
Implements
public final class SemanticConfiguration
implements JsonSerializable<SemanticConfiguration>
Defines a specific configuration to be used in the context of semantic capabilities.
Constructor Summary
| Constructor | Description |
|---|---|
| SemanticConfiguration(String name, SemanticPrioritizedFields prioritizedFields) |
Creates an instance of Semantic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Semantic |
fromJson(JsonReader jsonReader)
Reads an instance of Semantic |
| String |
getName()
Get the name property: The name of the semantic configuration. |
|
Semantic |
getPrioritizedFields()
Get the prioritized |
|
Ranking |
getRankingOrder()
Get the ranking |
| Boolean |
isFlightingOptIn()
Get the flighting |
|
Semantic |
setFlightingOptIn(Boolean flightingOptIn)
Set the flighting |
|
Semantic |
setRankingOrder(RankingOrder rankingOrder)
Set the ranking |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SemanticConfiguration
public SemanticConfiguration(String name, SemanticPrioritizedFields prioritizedFields)
Creates an instance of SemanticConfiguration class.
Parameters:
Method Details
fromJson
public static SemanticConfiguration fromJson(JsonReader jsonReader)
Reads an instance of SemanticConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the semantic configuration.
Returns:
getPrioritizedFields
public SemanticPrioritizedFields getPrioritizedFields()
Get the prioritizedFields property: 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.
Returns:
getRankingOrder
public RankingOrder getRankingOrder()
Get the rankingOrder property: Specifies the score type to be used for the sort order of the search results.
Returns:
isFlightingOptIn
public Boolean isFlightingOptIn()
Get the flightingOptIn property: Determines which semantic or query rewrite models to use during model flighting/upgrades.
Returns:
setFlightingOptIn
public SemanticConfiguration setFlightingOptIn(Boolean flightingOptIn)
Set the flightingOptIn property: Determines which semantic or query rewrite models to use during model flighting/upgrades.
Parameters:
Returns:
setRankingOrder
public SemanticConfiguration setRankingOrder(RankingOrder rankingOrder)
Set the rankingOrder property: Specifies the score type to be used for the sort order of the search results.
Parameters:
Returns: