Query Expansions
Query Expansions add related terms to user searches to improve result quality. This is different from acronyms - expansions handle synonyms, role titles, and domain jargon.
Understanding Query Expansionsโ
An expansion entry consists of:
| Field | Required | Description |
|---|---|---|
| Term | Yes | The word/phrase to detect (e.g., "runs") |
| Expansion | Yes | Terms to add (e.g., "director head coordinator") |
| Type | Yes | Category of expansion |
| Description | No | Admin notes about this rule |
| Active | Yes | Whether the expansion is enabled |
Expansion Typesโ
Synonymโ
Word equivalents that mean the same thing:
| Term | Expansion | Purpose |
|---|---|---|
| program | program department | Find both "program" and "department" documents |
| course | course class | Match "course" or "class" terminology |
| faculty | faculty professor instructor | Find all teaching staff references |
Roleโ
Leadership and position titles:
| Term | Expansion | Purpose |
|---|---|---|
| runs | director head coordinator | "Who runs...?" finds director listings |
| head of | director chair head coordinator | "Head of department" expands to all titles |
| in charge | director manager supervisor | Leadership queries |
Unit Typeโ
Organizational unit terminology:
| Term | Expansion | Purpose |
|---|---|---|
| office | office department | Find office or department references |
| unit | unit department division | Organizational structure queries |
| center | center institute program | Research center queries |
Extensionโ
Extension-specific terminology:
| Term | Expansion | Purpose |
|---|---|---|
| agent | county extension agent | Extension service queries |
| specialist | extension specialist | Subject matter experts |
| 4-H | 4-H youth development | Youth program queries |
Managing Expansionsโ
Viewing the Expansions Tabโ
Click the Query Expansions tab to see:
- Term: The trigger word
- Expansion: Added search terms
- Type: Category badge
- Status: Active/Inactive badge
- Description: Admin notes
- Actions: Edit and Delete buttons
Filtering Expansionsโ
Use the controls above the table:
- Search box: Filter by term or expansion text
- Type dropdown: Filter by expansion type
- Status dropdown: Show active, inactive, or all
Adding an Expansionโ
Step-by-Stepโ
- Go to the Query Expansions tab
- Click + Add Expansion
- Fill in the form:
- Term: The word to detect
- Expansion: Terms to add to search
- Type: Select the appropriate type
- Description: (Optional) Admin notes
- Active: Check to enable
- Click Save
- Click Reload Cache
Form Fields Explainedโ
Term Fieldโ
- The word or phrase that triggers expansion
- Case-insensitive matching
- Examples: "runs", "head of", "program"
Expansion Fieldโ
- Space-separated terms to add
- These supplement the original search
- Examples: "director head coordinator"
Type Fieldโ
Choose the most appropriate:
- Synonym: Word equivalents
- Role: Job titles and leadership
- Unit Type: Organizational terms
- Extension: Extension-specific
Active Checkboxโ
- Checked: Expansion is applied to searches
- Unchecked: Expansion is stored but not used
Editing an Expansionโ
- Find the expansion in the table
- Click the Edit button
- Modify fields as needed
- Click Save
- Click Reload Cache
Deleting an Expansionโ
- Find the expansion in the table
- Click the Delete button
- Confirm deletion
- Click Reload Cache
Activating/Deactivating Expansionsโ
Instead of deleting, you can deactivate:
- Edit the expansion
- Uncheck the Active checkbox
- Save
This preserves the rule while disabling it.
How Expansions Workโ
Example Flowโ
User question: "Who runs the HFIM program?"
- "runs" detected โ Expansion adds: "director head coordinator"
- "program" detected โ Expansion adds: "department"
- Enhanced query: Searches for documents containing any of these terms
- Better results: Finds the "HFIM Program Director" page
Multiple Expansionsโ
Multiple expansions can apply to the same query:
- Each matching term adds its expansion
- The combined terms improve search coverage
- Order doesn't matter
Best Practices for Expansionsโ
Do'sโ
- Be specific: Target terms that cause search misses
- Test changes: Verify improvements after adding
- Use types correctly: Helps with organization
- Document purpose: Use the description field
Don'tsโ
- Don't over-expand: Too many terms reduce precision
- Don't duplicate: Avoid redundant expansions
- Don't expand common words: "the", "is", "what" etc.
- Don't forget to reload: Changes need cache refresh
Common Expansions to Addโ
Essential Role Expansionsโ
| Term | Expansion |
|---|---|
| runs | director head coordinator manager |
| leads | director head chair |
| in charge | director manager supervisor head |
| manages | director manager coordinator |
Essential Synonym Expansionsโ
| Term | Expansion |
|---|---|
| classes | classes courses |
| teacher | teacher professor instructor faculty |
| job | job position employment career |
Troubleshootingโ
Expansion Not Workingโ
- Verify the entry exists and is Active
- Click Reload Cache
- Test with a sample question
- Check for typos in the term
Too Many Resultsโ
If expansions return too much:
- Review the expansion terms
- Remove overly broad terms
- Consider splitting into multiple specific expansions
Wrong Resultsโ
If expansions cause irrelevant matches:
- Check which expansion is causing issues
- Edit or deactivate it
- Test with sample questions
Next: Best Practices - Guidelines for effective configuration.