Synonym Processor (Query) Stage
Tip: Tuning stages were formerly referred to as "Pipeline" stages.
About
This Tuning stage expands queries to include synonyms.
- This stage is placed first in your list of Query stages.
- The Synonyms Processor analyzes the submitted query and modifies the query to include synonyms.
- Both One-Way and Two-Way synonyms are supported.
- This new query is translated by the search engine processor to match the syntax of the search engine.
Valid CSV Format
-
Synonym configuration uses valid CSV format.
Example:
To include double quotes ("" "") within a synonym use:
"""KEYWORD"""
-
The processor will use "KEYWORD".
-
Entering "KEYWORD" will use KEYWORD.
Synonym Examples
See the additional Synonym Query examples below.
| Method | Format | Example | Description |
|---|---|---|---|
| One-Way | 1,<word>, <synonym>,<synonym>,...... |
1, Tony, Anthony 1, William, Bill, Will |
|
| Two-Way | 2,<word/synonym>, <word/synonym>,<word/synonym>,..... |
2, Tony, Anthony 2, William, Bill, Will |
|
| Mixed |
1,<word>, <synonym>,<synonym>,...... 2,<word/synonym>, <word/synonym>,<word/synonym>,..... |
1, Tony, Anthony 2, William, Bill, Will |
|
Multiple Word Synonyms
-
The Synonym Processor is capable of using multiple word synonyms.
-
Multiple word synonyms are treated as exact search terms.
2,ATC,"""Anatomical Therapeutic Chemical"""
AND
2,ATC,Anatomical Therapeutic Chemical
Both formats will be treated within the processor as "Anatomical Therapeutic Chemical"
To query as multiple Synonyms use the format:
2,ATC,Anatomical,Therapeutic,Chemical
Add the Synonym Processor Stage and Configure It
- To add the Synonym Processor stage, navigate to the SmartHub Administration settings page. For example, http://<SmartHubURL>/_admin.
- Select the search engine.
- Select ADD QUERY TUNING.
- Select Synonyms Processor from the drop-down list.
- Enter your parameters in the Parameters field.
- Click OK.
Additional Synonym Query Examples
Use the information below as additional synonym query examples.
- Query TextBox: ATC
- Resulting Query: ATC OR "Anatomical Therapeutic Chemical"
- Resulting Query: ATC OR "Anatomical Therapeutic Chemical"
- Query TextBox: Anatomical Therapeutic Chemical
- Resulting Query: "Anatomical Therapeutic Chemical" OR ATC
- Resulting Query: "Anatomical Therapeutic Chemical" OR ATC
- Query TextBox: "Anatomical Therapeutic Chemical"
- Resulting Query: "Anatomical Therapeutic Chemical" OR ATC
- Resulting Query: "Anatomical Therapeutic Chemical" OR ATC
- Query TextBox: Anatomical Therapeutic Chemical Compounds
- Resulting Query: ("Anatomical Therapeutic Chemical" Compounds) OR (ATC Compounds)
- Resulting Query: ("Anatomical Therapeutic Chemical" Compounds) OR (ATC Compounds)
-
Query TextBox:
-
"Anatomical Therapeutic Chemical" Compounds
or -
Anatomical Therapeutic Chemical Compounds
-
Resulting Query:
-
("Anatomical Therapeutic Chemical" Compounds)
or -
(ATC Compounds)
-
-