
Dictionaries
Tab for managing phpMorphy morphological dictionaries.
Purpose
Morphological dictionaries enable search by word forms. E.g. searching for “phones” also finds “phone”, “phones”, etc.
Available dictionaries
| Dictionary | Language |
|---|---|
| ru | Russian |
| en | English |
| de | German |
| uk | Ukrainian |
Requirements
mSearch needs at least one morphological dictionary. Without dictionaries, word-form search will not work.
Interface
Dictionaries table
| Column | Description |
|---|---|
| Dictionary | Dictionary name |
| Language | Language |
| Installed | Installation status |
Actions
| Button | Description |
|---|---|
| Install | Download and install dictionary |
| Remove | Remove installed dictionary |
Installing a dictionary
- Find the dictionary in the table
- Click Install
- Choose a download mirror
- Wait for the download to finish
Source
Dictionaries are downloaded from GitHub (seoservice2020/phpmorphy).
Composer package
mSearch uses the cijic/phpmorphy library — a modern phpMorphy fork installed via Composer.
After installation
After installing a new dictionary:
- Go to the Indexing tab
- Clear the existing index
- Rebuild the index
This ensures the new dictionary is used correctly.
File location
Dictionaries are stored in:
core/components/msearch/phpmorphy/dicts/Each dictionary is a set of .mrd, .fsa, and meta.json files.
Without dictionaries
If no dictionaries are installed:
- Search still works
- Morphological analysis is off
- Only exact and LIKE matches
- Search quality drops
Multilingual sites
For multilingual sites install all needed dictionaries. mSearch detects the word language and uses the right dictionary.
Example
Site in Russian and English:
- Install
russiandictionary - Install
englishdictionary
When searching:
- “phones” → Russian dictionary
- “phones” → English dictionary
Dictionary sizes
| Dictionary | Size |
|---|---|
| ru (Russian) | ~10 MB |
| en (English) | ~5 MB |
| de (German) | ~15 MB |
| uk (Ukrainian) | ~8 MB |
Disk space
Ensure enough disk space for dictionaries.
Differences from mSearch2
| Aspect | mSearch2 | mSearch |
|---|---|---|
| Library | Bundled phpMorphy | Composer cijic/phpmorphy |
| Source | SourceForge | GitHub |
| Ukrainian | Yes | Yes |
| Estonian | Yes | No |
| Interface | ExtJS | Vue 3 + PrimeVue |
| Install | On component install | Manually in interface |
