SearchIndexKnowledgeSource Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. KnowledgeSource - com.
azure. search. documents. indexes. models. SearchIndexKnowledgeSource
- com.
- com.
public final class SearchIndexKnowledgeSource
extends KnowledgeSource
Knowledge Source targeting a search index.
Constructor Summary
| Constructor | Description |
|---|---|
| SearchIndexKnowledgeSource(String name, SearchIndexKnowledgeSourceParameters searchIndexParameters) |
Creates an instance of Search |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
|
Knowledge |
getKind()
Get the kind property: The type of the knowledge source. |
|
Search |
getSearchIndexParameters()
Get the search |
|
Search |
setDescription(String description)
Set the description property: Optional user-defined description. |
|
Search |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryption |
|
Search |
setETag(String eTag)
Set the e |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from KnowledgeSource
Methods inherited from java.lang.Object
Constructor Details
SearchIndexKnowledgeSource
public SearchIndexKnowledgeSource(String name, SearchIndexKnowledgeSourceParameters searchIndexParameters)
Creates an instance of SearchIndexKnowledgeSource class.
Parameters:
Method Details
fromJson
public static SearchIndexKnowledgeSource fromJson(JsonReader jsonReader)
Reads an instance of SearchIndexKnowledgeSource from the JsonReader.
Parameters:
Returns:
Throws:
getKind
public KnowledgeSourceKind getKind()
Get the kind property: The type of the knowledge source.
Overrides:
SearchIndexKnowledgeSource.getKind()Returns:
getSearchIndexParameters
public SearchIndexKnowledgeSourceParameters getSearchIndexParameters()
Get the searchIndexParameters property: The parameters for the knowledge source.
Returns:
setDescription
public SearchIndexKnowledgeSource setDescription(String description)
Set the description property: Optional user-defined description.
Overrides:
SearchIndexKnowledgeSource.setDescription(String description)Parameters:
setEncryptionKey
public SearchIndexKnowledgeSource setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.
Overrides:
SearchIndexKnowledgeSource.setEncryptionKey(SearchResourceEncryptionKey encryptionKey)Parameters:
setETag
public SearchIndexKnowledgeSource setETag(String eTag)
Set the eTag property: The ETag of the knowledge base.
Overrides:
SearchIndexKnowledgeSource.setETag(String eTag)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SearchIndexKnowledgeSource.toJson(JsonWriter jsonWriter)Parameters:
Throws: