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. The
Name element contains a description for
the synonym group and it has no effect on search. The Synonyms 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 and go to a vault.
-
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:
-
Open the context menu for the taskbar and select Task Manager.
Result:The Task Manager window opens.
-
Open the Services tab.
-
Open the context menu for the MFServer service and select
Restart.
Now when users search for announcement, the search results list documents
that contain the words announcement, notice, bulletin,
statement, or publication. Synonyms are identified in document
contents and metadata.