public final class SynonymMap extends Object
Constructor and Description |
---|
SynonymMap(String name)
Constructor of
SynonymMap . |
SynonymMap(String name,
String synonyms)
Constructor of
SynonymMap . |
Modifier and Type | Method and Description |
---|---|
static SynonymMap |
createFromFile(String name,
Path filePath)
Creates a new instance of SynonymMap with synonyms read from the passed file.
|
SearchResourceEncryptionKey |
getEncryptionKey()
Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.
|
String |
getETag()
Get the eTag property: The ETag of the synonym map.
|
String |
getName()
Get the name property: The name of the synonym map.
|
String |
getSynonyms()
Get the synonyms property: A series of synonym rules in the specified synonym map format.
|
SynonymMap |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.
|
SynonymMap |
setETag(String eTag)
Set the eTag property: The ETag of the synonym map.
|
SynonymMap |
setSynonyms(String synonyms)
Set the synonyms property: A series of synonym rules in the specified synonym map format.
|
public SynonymMap(String name)
SynonymMap
.name
- The name of the synonym map.public SynonymMap(String name, String synonyms)
SynonymMap
.name
- The name of the synonym map.synonyms
- A series of synonym rules in the specified synonym map format. The rules must be separated by
newlines.public String getName()
public String getSynonyms()
public SynonymMap setSynonyms(String synonyms)
synonyms
- the synonyms value to set.public SearchResourceEncryptionKey getEncryptionKey()
public SynonymMap setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
encryptionKey
- the encryptionKey value to set.public String getETag()
public SynonymMap setETag(String eTag)
eTag
- the eTag value to set.public static SynonymMap createFromFile(String name, Path filePath)
name
- The name of the synonym map.filePath
- The path to the file where the formatted synonyms are read.UncheckedIOException
- If reading filePath
fails.Copyright © 2021 Microsoft Corporation. All rights reserved.