你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 | Description |
---|---|
Semantic |
Creates an instance of Semantic |
Modifier and Type | Method and Description |
---|---|
static
Semantic |
from Reads an instance of Semantic |
String |
get Get the name property: The name of the semantic configuration. |
Semantic |
get Get the prioritized |
Json |
to |
Methods inherited from java.lang.Object
SemanticConfiguration
public SemanticConfiguration(String name, SemanticPrioritizedFields prioritizedFields)
Creates an instance of SemanticConfiguration class.
Parameters:
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: