Skip to content
  1. Extras
  2. mSearch
  3. Interface
  4. Aliases

Aliases ​

Tab for managing synonyms and replacements of search words.

Purpose ​

Aliases link different spellings of words and broaden search results. They are used for:

  • Fixing typos
  • Adding synonyms
  • Transliteration
  • Linking brands with alternative names

Modes ​

In the manager the mode is set by the Full replace flag and shown in the table as "Add" or "Replace".

Add (synonym) ​

The "Full replace" flag is off. The replacement is appended to the query, the original is kept.

Example: alias notebook → laptop

  • Query: "notebook bag"
  • Searching for: "notebook", "laptop", "bag"

It triggers on a substring match: if "notebook" occurs inside another word, the replacement is still appended to the end of the query. The match ignores case only for Latin letters: for a word in another script (e.g. Cyrillic) the case in the query must match the alias.

Replace ​

The "Full replace" flag is on. The original word is replaced with the replacement.

Example: alias notbook → notebook

  • Query: notbook bag
  • Searching for: "notebook", "bag"

It triggers only on a whole word (by word boundaries) — occurrences inside other words are not affected. The match is case-insensitive.

Interface ​

Aliases tab: "Replace" and "Add" modes, active and inactive aliases

Aliases table ​

ColumnDescription
WordOriginal word (what the user searches for)
ReplacementWord to replace with / append
Full replaceReplace — replacement, Add — synonym
ActiveAlias status

Actions ​

ButtonDescription
Create aliasAdd a new alias
EditChange an existing alias
RemoveRemove an alias (asks for confirmation)

Creating an alias ​

  1. Click Create alias
  2. Fill in the fields:
    • Word — what the user searches for (required)
    • Replacement — what to replace it with or what to append (required)
    • Full replace — turn on for the replace mode
    • Active — enable/disable the alias
  3. Click Save

The "Word" and "Replacement" fields are required — saving fails without them.

Create alias dialog: Word and Replacement fields, Full replace and Active flags

Usage examples ​

Fixing typos ​

WordReplacementMode
samsumgsamsungReplace
apleappleReplace
xiomixiaomiReplace

Adding synonyms ​

WordReplacementMode
phonesmartphoneAdd
notebooklaptopAdd
printermfpAdd

Brand transliteration ​

WordReplacementMode
найкnikeReplace
адидасadidasReplace
пумаpumaReplace

Abbreviations ​

WordReplacementMode
pccomputerAdd
tvtelevisionAdd
cellmobile phoneReplace

Recommendations ​

Analyze queries ​

Check the Queries tab regularly:

  1. Find queries with zero results
  2. Check whether there is relevant content
  3. If there is, create an alias

Do not overuse ​

  • Create aliases only for real synonyms
  • Avoid overly generic replacements
  • Test search results after adding an alias

Aliases come before morphology ​

Aliases are applied before morphological analysis. If a word is recognized by the morphological dictionary, its word forms are taken into account too.

Words shorter than mse_index_min_word_length (3 by default) are dropped from the query after aliases are applied — so the replacement or the appended synonym must be at least that long, otherwise it does not affect the search.

Differences from mSearch2 ​

AspectmSearch2mSearch
NameSynonymsAliases
ModesSynonyms only (add)Add and replace
InterfaceExtJSVue 3 + PrimeVue