Creating Synonyms to Enhance Search Results
Creating Synonyms to Enhance Search Results
Following are steps for creating synonyms.
- Do one of the following to add or open a synonym file:
- If you have not done so already, add a synonym file to the project. Start by selecting Project > New > Advanced > Synonym File (if using ribbon view) or Project > Advanced > Synonym File (if using menu view).
- Enter a name for the synonym file and click Add.
- Open the Project Organizer.
- Double-click the Advanced folder.
- Double-click the synonym file.
-
In the Synonyms Editor, you can create directional synonyms or synonym groups for single words.
note
Note: The synonyms feature supports the use of single words only. You cannot use phrases with the synonyms feature. For example, you cannot create a synonym named "tool bar" for the word "toolbar." An example of a valid use of the synonyms feature would be to add the synonym "hound" for the word "dog" or "kitty" for the word "cat."
synonym group
This is a collection of synonyms that produces the same search results for all of the words in the group. It is a useful method if you have multiple terms in your project that are similar, and you want the same search results to be returned when users enter any of those phrases. In the Synonyms Editor, you enter the terms with an equal sign between each one (Synonym1=Synonym2=Synonym3). When users enter any of those terms in future searches, all topics containing any of those words are found.
example
Example
Let's say that you have written some content about sports, and many of your topics include the words "sports," "athletics," or "games." If a user enters the word "athletics" as the search term, it will return not only topics containing that word, but also topics containing the words "sports" or "games" (even if "athletics" does not occur in those other topics).
how to create a synonym group
- Select the Groups tab.
- Click in the empty Group cell and press F2 on your keyboard.
- Type the words that you want to include in the group, with an equal sign between each (e.g., sports=athletics=games). Press Enter when you are finished.
-
(Optional) Click in the Stem check box if you want Flare to find other variations of the synonyms that have the same stems.example.
Example
Let's say you enter "hike=walk" in the Group cell. Then you select the Stem check box. In the future, if users search for the word "hike," it will find all topics containing the words "hike" or "walk." However, it will also find topics containing words that have the same stem as those terms, such as "hiked," "hiking," or "walking."
directional synonym
This is a synonym that works in one direction (Word—>Synonym). It is a useful method if readers enter a search term that is not contained in your project, but you have a similar word that is contained in the project. It works like this… In the Synonyms Editor, you enter the word that is not producing search results (because it is NOT contained in your project content). Next to it, you enter a synonym—a word that will produce search results (because it IS contained in your project content). When users enter the original word again in future searches, topics containing the synonym are found.
example
Example
Let's say that you use MadCap Pulse to view search keyword results from your users and find that many are entering the search term "sofa." Unfortunately, you have not used that word in your project, so users are unable to find the topics that they need. However, you have used a similar word, "couch." Therefore, in the Synonyms Editor, you enter "couch" as a synonym for "sofa." The next time a reader enters "sofa" as a search keyword, topics containing the word "couch" will be returned in the results.
how to create a directional synonym
- Select the Directional tab.
- Click in the empty Word cell and press F2 on your keyboard.
- Type the phrase that does not produce search results (e.g., sofa). Press Enter.
- Click in the empty Synonym cell and press F2 on your keyboard.
-
Type the parallel search phrase that is contained in the project content (e.g., couch). Press Enter when you are finished. In the future, when users perform a search and enter the term from the Word cell (e.g., sofa), Flare will find all topics that contain the term that you entered in the Synonym cell (e.g., couch).
-
(Optional) Click in the Stem check box if you want Flare to accept other variations of the search term that have the same stem.
example
Let's say you enter "hike" in the Word cell, and you enter "walk" in the Synonym cell. Then you select the Stem check box. In the future, if users search for the word "hike," it will find all topics containing the word "walk." The same will happen if users enter other search phrases with the same stem, such as "hiked" or "hiking."
-
Click
to save your work.
Note: You can create synonyms within the Flare project, with the browser Admin for Pulse, or within Feedback Explorer. It is not mandatory that you have MadCap Pulse or Feedback in order to use synonyms in Flare output, but using MadCap Pulse or Feedback makes it much easier to determine which words require synonyms based on the search results of your users. Using the browser Admin for Pulse or the Feedback Explorer to create synonyms is appealing because the synonyms become immediately available for users searching in your output (without needing to republish the output). Be aware, however, that creating synonyms in Pulse or Feedback Explorer works for the output as long as you continue to publish output to the same server. If you create synonyms in Pulse or Feedback Explorer, it is recommended that you also create those synonyms at the source (i.e., within the Flare project), in case you ever publish to a different server. The easiest way to do this is to export the synonym file from the browser Admin for Pulse or the Feedback Explorer to the Project\Advanced folder in the Flare project.
Note: After you create synonyms, there is nothing else you need to do in order to make them available in the output. If you create synonyms in Flare, they are automatically applied at the project level, so all targets will incorporate those synonyms when you generate and publish the new Flare output. If you create the synonyms in Pulse or Feedback Explorer instead, the synonyms become immediately incorporated into the output (even if you do not republish your Flare target). Please note that if you are testing synonyms in Pulse or Feedback Explorer, you may need to refresh the interface to see the changes.
Note: If you merge projects, synonym files will remain separate in each project. For example, if you create synonyms in Project A but not in project B, only the topics from Project A will use the synonyms when users perform searches in the output.
Note: Depending on the browser being used, the cache may need to be cleared in order to see the synonym results.