Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

IDOL - Changing index database name

Last updated on 9 December 2024 · 2 min read

Admin
Search

Overview

IDOL has its internal database name as you can see from the admin tool's index settings (JSON):

 "vaultIndexNameTemplate": "v-<vault_guid>-20221102-ewpe"

The actual database name for the above is:

v-C840BE1A-5B47-4AC0-8EF7-835C166C8E24-20221102-ewpe

That can also be seen by using MFIDOLConsole command getstatus:

image.png

Sometimes, there is a need for changing the database name. For example, if you have two identical vaults with different GUID's and you want to copy already indexed index for another vault. This article will tell you the process.

NOTE! Using this document requires basic understanding of IDOL components and terminology.

Impacted Products and Versions

M-Files 22.1.x and later.

IDOL 12.4 and later.

Solution

  1. Stop MFIndexingManager service and make sure that all MFIndexer.exe processes go down.
  2. Open admin tool and navigate to > Configurations > Advanced Vault Settings > Configuration > Search > Indexes (x) > corresponding index.
  3. Select Advanced tab.
  4. Note down vaultIndexNameTemplate value.
  5. Note down vault GUID. Then, you can construct the index database name. Example:
    v-<vault_guid>-20221102-ewpe with the vault GUID C840BE1A-5B47-4AC0-8EF7-835C166C8E24 would be:

    v-C840BE1A-5B47-4AC0-8EF7-835C166C8E24-20221102-ewpe

     
  6. In IDOL frontend server, run following command against Daily and DIH:

    http://127.0.0.1:[indexing port of Daily/DIH]/DRERENAMEDBASE?DREDbName=[current database name]&NewName=[new database name]&Priority=95

    Example:

    http://127.0.0.1:9001/DRERENAMEDBASE?DREDbName=v-14963e88-da1d-42ad-ac05-708c4ce04d61-20221219-hrua&NewName=v-14963e88-da1d-42ad-ac05-708c4ce04d61-20221219-hxxx&Priority=95

     
  7. We also must change the name of the Index Info index (ending with -i). That is done only against Daily:

    http://127.0.0.1:9001/DRERENAMEDBASE?DREDbName=v-14963e88-da1d-42ad-ac05-708c4ce04d61-20221219-hrua-i&NewName=v-14963e88-da1d-42ad-ac05-708c4ce04d61-20221219-hxxx-i&Priority=95

     
  8. Now, the IDOL side is ready. It should be noted, that if you use MFIDOLConsole command getcontent to get the index content of an individual object, its reference will still have the old database name. This is normal: Deep down IDOL will know the new name and works correctly. When the object is changed, the reference will also change.
  9. Let's move to the admin tool and the JSON of the index configuration. Add a new parameter predefinedIndexName on top of vaultIndexNameTemplate and give it the new name of the index database. 
    Example:

    "predefinedIndexName": "v-14963e88-da1d-42ad-ac05-708c4ce04d61-20221219-hxxx",
    "vaultIndexNameTemplate": "v-<vault_guid>-20221219-hrua"

     
  10. Save.
  11. Start MFIndexingManager service. 

More info of using MFIDOLConsole:

support.m-files.com/supportportal - IDOL - MFAutonomyConsole

Still need help?