Class SemanticSearch
java.lang.Object
com.azure.search.documents.indexes.models.SemanticSearch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SemanticSearch>
public final class SemanticSearch
extends Object
implements com.azure.json.JsonSerializable<SemanticSearch>
Defines parameters for a search index that influence semantic capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SemanticSearchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SemanticSearch from the JsonReader.Get the configurations property: The semantic configurations for the index.Get the defaultConfigurationName property: Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time.setConfigurations(List<SemanticConfiguration> configurations) Set the configurations property: The semantic configurations for the index.setDefaultConfigurationName(String defaultConfigurationName) Set the defaultConfigurationName property: Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SemanticSearch
public SemanticSearch()Creates an instance of SemanticSearch class.
-
-
Method Details
-
getDefaultConfigurationName
Get the defaultConfigurationName property: Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time.- Returns:
- the defaultConfigurationName value.
-
setDefaultConfigurationName
Set the defaultConfigurationName property: Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time.- Parameters:
defaultConfigurationName- the defaultConfigurationName value to set.- Returns:
- the SemanticSearch object itself.
-
getConfigurations
Get the configurations property: The semantic configurations for the index.- Returns:
- the configurations value.
-
setConfigurations
Set the configurations property: The semantic configurations for the index.- Parameters:
configurations- the configurations value to set.- Returns:
- the SemanticSearch object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SemanticSearch>- Throws:
IOException
-
fromJson
Reads an instance of SemanticSearch from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SemanticSearch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SemanticSearch.
-