Help > Web Development > Object Reference > Object Reference > ISYSSearchSynonyms
<a name="kanchor549"></a>ISYSSearchSynonyms Object
Contains a dynamic list of synonyms to apply to this search.
ISYSSearchSynonyms Methods
AddAdd a synonym to use during the search
Remarks
Synonyms allow you to expand a query without modifying the query text directly. When ISYS executes a search, it will check each search token against the known synonyms (stored in the ISYS.SYN file) and against the dynamic synonyms. When a match is found, this new search term is automatically searched for.
Examples
[VBScript]
<% ' This sample demostrates creating a new ISYSSearch object and specifying the ' QueryText, QuerySource and QueryType, applying synonyms and executing it to ' get the result list. ' Create the new ISYSSearch object dim ISYSSearch : set ISYSSearch = ISYSEngine.NewSearch ' Specify the Index to Search ISYSSearch.QuerySource = "c:\indexes\documents" ' Specify the Query Text ISYSSearch.QueryText = "Policies" ' Specify the Query Type ISYSSearch.QueryType = isysQueryISYS ' Creating dynamic synonymn ring ISYSSearch.Synonymns.Add Array("GST", "Goods and Services Tax") ISYSSearch.Synonymns.Add Array("HR", "Human Resources") ISYSSearch.Synonymns.Add Array("Cell", "Cell Phone", "Mobile Phone") ' Execute the Search dim SearchResults : set SearchResults = ISYSSearch.Execute %>
See Also
ISYSSearch::Synonyms