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 |
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:
toJson
Applies to
Azure SDK for Java