Setting Up Synonym Search
You must set up the synonym search and create a custom thesaurus so that the vault users can find documents using synonyms in the search query. If your thesaurus is large, the synonym search can have a negative effect on the performance of the search.
Note: To use this feature, your search engine must be dtSearch.
To set up the synonym search:
-
Use a text editor to create your own custom thesaurus file that is similar to
this:
<?xml version="1.0" encoding="UTF-8" ?> <dtSearchUserThesaurus> <Item> <Name>Synonyms for announcement</Name> <Synonyms>announcement notice bulletin statement publication</Synonyms> </Item> <Item> <Name>Synonyms for contract</Name> <Synonyms>contract agreement deal arrangement</Synonyms> </Item> </dtSearchUserThesaurus>
Each
Item
contains a synonym group. TheName
element contains a description for the synonym group and it has no effect on search. TheSynonyms
element contains a single synonym group. Separate the synonyms with a space. -
Save the file with the name thesaur.xml here:
C:\Program Files\M-Files\<version>\Server\<language code of the search language>
-
- Open M-Files Admin.
- In the left-side tree view, expand an M-Files server connection.
- Expand Document Vaults.
- Expand a vault.
- Click Configurations.
- In the navigation area, expand .
- Click Full-Text Search.
- In Thesaurus, enter thesaur.xml.
- Click Save.
- Close M-Files Admin.
-
Use Windows Task Manager to restart the MFServer
service: