SearchServiceApplicationProxy.AddSynonym Method
Adds a synonym for the specified keyword to the Search administration database.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub AddSynonym ( _
syn As Synonym, _
parentSpecialTerm As Keyword _
)
'Usage
Dim instance As SearchServiceApplicationProxy
Dim syn As Synonym
Dim parentSpecialTerm As Keyword
instance.AddSynonym(syn, parentSpecialTerm)
public void AddSynonym(
Synonym syn,
Keyword parentSpecialTerm
)
Parameters
syn
Type: Microsoft.Office.Server.Search.Administration.SynonymThe synonym associated with the specified keyword.
parentSpecialTerm
Type: Microsoft.Office.Server.Search.Administration.KeywordThe specified keyword.
Implements
ISearchSiteAdministrationServiceApplication.AddSynonym(Synonym, Keyword)
Exceptions
Exception | Condition |
---|---|
ArgumentException | A duplicate special term already exists in the Search administration database. |
Exception | An error, such as a SearchServiceApplicationFault, occurred during application execution. |
Remarks
This method adds the synonym represented by the syn parameter for the keyword represented by the parentSpecialTerm parameter to the Search administration database.
See Also
Reference
SearchServiceApplicationProxy Class