Class SearchIndexKnowledgeSourceParameters
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexKnowledgeSourceParameters>
public final class SearchIndexKnowledgeSourceParameters
extends Object
implements com.azure.json.JsonSerializable<SearchIndexKnowledgeSourceParameters>
Parameters for search index knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexKnowledgeSourceParameters(String searchIndexName) Creates an instance of SearchIndexKnowledgeSourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexKnowledgeSourceParameters from the JsonReader.Get the searchFields property: Used to restrict which fields to search on the search index.Get the searchIndexName property: The name of the Search index.Get the semanticConfigurationName property: Used to specify a different semantic configuration on the target search index other than the default one.Get the sourceDataFields property: Used to request additional fields for referenced source data.setSearchFields(List<SearchIndexFieldReference> searchFields) Set the searchFields property: Used to restrict which fields to search on the search index.setSemanticConfigurationName(String semanticConfigurationName) Set the semanticConfigurationName property: Used to specify a different semantic configuration on the target search index other than the default one.setSourceDataFields(List<SearchIndexFieldReference> sourceDataFields) Set the sourceDataFields property: Used to request additional fields for referenced source data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class 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
-
SearchIndexKnowledgeSourceParameters
Creates an instance of SearchIndexKnowledgeSourceParameters class.- Parameters:
searchIndexName- the searchIndexName value to set.
-
-
Method Details
-
getSearchIndexName
Get the searchIndexName property: The name of the Search index.- Returns:
- the searchIndexName value.
-
getSourceDataFields
Get the sourceDataFields property: Used to request additional fields for referenced source data.- Returns:
- the sourceDataFields value.
-
setSourceDataFields
public SearchIndexKnowledgeSourceParameters setSourceDataFields(List<SearchIndexFieldReference> sourceDataFields) Set the sourceDataFields property: Used to request additional fields for referenced source data.- Parameters:
sourceDataFields- the sourceDataFields value to set.- Returns:
- the SearchIndexKnowledgeSourceParameters object itself.
-
getSearchFields
Get the searchFields property: Used to restrict which fields to search on the search index.- Returns:
- the searchFields value.
-
setSearchFields
public SearchIndexKnowledgeSourceParameters setSearchFields(List<SearchIndexFieldReference> searchFields) Set the searchFields property: Used to restrict which fields to search on the search index.- Parameters:
searchFields- the searchFields value to set.- Returns:
- the SearchIndexKnowledgeSourceParameters object itself.
-
getSemanticConfigurationName
Get the semanticConfigurationName property: Used to specify a different semantic configuration on the target search index other than the default one.- Returns:
- the semanticConfigurationName value.
-
setSemanticConfigurationName
public SearchIndexKnowledgeSourceParameters setSemanticConfigurationName(String semanticConfigurationName) Set the semanticConfigurationName property: Used to specify a different semantic configuration on the target search index other than the default one.- Parameters:
semanticConfigurationName- the semanticConfigurationName value to set.- Returns:
- the SearchIndexKnowledgeSourceParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexKnowledgeSourceParameters>- Throws:
IOException
-
fromJson
public static SearchIndexKnowledgeSourceParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchIndexKnowledgeSourceParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexKnowledgeSourceParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexKnowledgeSourceParameters.
-