Skip to main content

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:

FieldRequiredDescription
TermYesThe word/phrase to detect (e.g., "runs")
ExpansionYesTerms to add (e.g., "director head coordinator")
TypeYesCategory of expansion
DescriptionNoAdmin notes about this rule
ActiveYesWhether the expansion is enabled

Expansion Typesโ€‹

Synonymโ€‹

Word equivalents that mean the same thing:

TermExpansionPurpose
programprogram departmentFind both "program" and "department" documents
coursecourse classMatch "course" or "class" terminology
facultyfaculty professor instructorFind all teaching staff references

Roleโ€‹

Leadership and position titles:

TermExpansionPurpose
runsdirector head coordinator"Who runs...?" finds director listings
head ofdirector chair head coordinator"Head of department" expands to all titles
in chargedirector manager supervisorLeadership queries

Unit Typeโ€‹

Organizational unit terminology:

TermExpansionPurpose
officeoffice departmentFind office or department references
unitunit department divisionOrganizational structure queries
centercenter institute programResearch center queries

Extensionโ€‹

Extension-specific terminology:

TermExpansionPurpose
agentcounty extension agentExtension service queries
specialistextension specialistSubject matter experts
4-H4-H youth developmentYouth 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:

  1. Search box: Filter by term or expansion text
  2. Type dropdown: Filter by expansion type
  3. Status dropdown: Show active, inactive, or all

Adding an Expansionโ€‹

Step-by-Stepโ€‹

  1. Go to the Query Expansions tab
  2. Click + Add Expansion
  3. 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
  4. Click Save
  5. 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โ€‹

  1. Find the expansion in the table
  2. Click the Edit button
  3. Modify fields as needed
  4. Click Save
  5. Click Reload Cache

Deleting an Expansionโ€‹

  1. Find the expansion in the table
  2. Click the Delete button
  3. Confirm deletion
  4. Click Reload Cache

Activating/Deactivating Expansionsโ€‹

Instead of deleting, you can deactivate:

  1. Edit the expansion
  2. Uncheck the Active checkbox
  3. Save

This preserves the rule while disabling it.

How Expansions Workโ€‹

Example Flowโ€‹

User question: "Who runs the HFIM program?"

  1. "runs" detected โ†’ Expansion adds: "director head coordinator"
  2. "program" detected โ†’ Expansion adds: "department"
  3. Enhanced query: Searches for documents containing any of these terms
  4. 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โ€‹

TermExpansion
runsdirector head coordinator manager
leadsdirector head chair
in chargedirector manager supervisor head
managesdirector manager coordinator

Essential Synonym Expansionsโ€‹

TermExpansion
classesclasses courses
teacherteacher professor instructor faculty
jobjob position employment career

Troubleshootingโ€‹

Expansion Not Workingโ€‹

  1. Verify the entry exists and is Active
  2. Click Reload Cache
  3. Test with a sample question
  4. Check for typos in the term

Too Many Resultsโ€‹

If expansions return too much:

  1. Review the expansion terms
  2. Remove overly broad terms
  3. Consider splitting into multiple specific expansions

Wrong Resultsโ€‹

If expansions cause irrelevant matches:

  1. Check which expansion is causing issues
  2. Edit or deactivate it
  3. Test with sample questions

Next: Best Practices - Guidelines for effective configuration.