Synonym Searching

Intermediate

17 Dec 2015   Search

A Search Page can suggest or modify searches depending on Thesaurus relations. This means that when a search is made, related terms can be determined using Thesaurus Terms' relations to each other and either suggest a new search or modify the current search, based on the search settings.

Example

To create a Search Page which uses synonym searching:

  1. Add and configure a Search Page on your Site, selecting the root nodes and asset types to search for, adding the search fields and setting up the layout of the page.
  2. On the Details screen of the Search Page, select a Thesaurus in the Thesaurus Asset field of the Synonym Search Options section, as shown in the figure below.

    5-0-0_thesaurus-asset-field-synonym-search-options.png
    The Thesaurus Asset field in the Synonym Search Options section of the Details screen

    You can also choose to use Auto Synonym Search and Enable Multi-Word Synonym Lookups. For more information on these settings, refer to the Search manual.

    The keyword replacement for the synonym results now needs to be added to the results page. This will allow the user to see the suggested synonyms.
  3. Right click on the Results Page Layout Bodycopy of the Search Page and select the Edit Contents screen.
  4. The information shown in the figure below was entered into the WYSIWYG Editor.

    5-0-0_wysiwyg-editor-results-page-layout-bodycopy.png
    The WYSIWYG Editor on the Results Page Layout Bodycopy

    You can also add the keyword replacement to the No Results Page Layout Bodycopy to display synonym searching when no results are found.

    Now that the Search Page is configured, the Synonym Relation setting must be configured.
  5. Go to the Details screen of the selected Thesaurus.
  6. In the Built-in Relations section, select the relation used for synonyms in the Thesaurus, as shown in the figure below.

    5-0-0_synonym-relation-on-built-in-relations-section.png
    The Build-in Relations sections of the Thesaurus' Details screen

    Synonym searching is now configured for the Search Page. When a term from the Thesaurus is searched, the Search Page will suggest synonyms of that terms based on its relations, as shown in the figure below.

    Synonym searching on a Search Page
    Synonym searching on the Search Page