Overview
At some rare occasions, M-Files server might start to perform unwanted, full re-indexing of the vault.
Usually this is first noticed from the situation where end-users' modifications and new objects are not indexed in timely fashion.
In this case, the re-indexing is appending so it does not destroy the old index first but overrides the existing index records. Naturally, this kind of re-indexing is useless and should be canceled. This article will describe how to do that.
NOTE 1: This document complies M-Files server version 20.6 onwards and IDOL version 12.1.
NOTE 2: Using this document requires basic understanding of IDOL components and terminology.
Solution
In this case, we really benefit from the fact that we have IDOL's frontend (Daily) and backend (Main index). Since the vault is usually larger than 20000 objects, the re-indexing will be done directly into the backend. That said, even if the backend is already processing the objects, the frontend, more specifically Daily is ready to receive new and edited contents.
Before performing the steps below, check that Daily is in a normal condition - for example, that it does not have a big indexing queue. The fastest way is to check following path:
[installation folder]\data\[cluster name]-content-[Daily ACI port]\index\status
Example:
C:\IDOL12\data\PROD1-content-9000\index\status
If the folder is almost empty, you are good to go forward. If there are tens of thousands of files, you must empty that queue with the instructions IDOL - Daily indexing stuck due to overflowing status folder.
Then to the actual procedure. The idea is to increase the timestamp (it's not an actual timestamp, but just a number) that M-Files uses for indexing, so that M-Files thinks it does not have anything to index until this point of time.
- On the M-Files server, stop the MFIndexingManager service. Wait until all MFIndexer.exe processes are gone.
- Run the following query against the M-Files vault database.
SELECT MAX(VERSIONFORMDI) FROM [vault database name].[dbo].[OBJECTTYPEITEM];
Example for database name "Sample Vault SQL IDOL 12.4":
SELECT MAX(VERSIONFORMDI) FROM [Sample Vault SQL IDOL 12.4].[dbo].[OBJECTTYPEITEM];
That query will give you the latest (= largest) timestamp number.
- Follow document IDOL - Re-indexing, chapter 3: Instead of changing the timestamp value into 0, change it into the value you got in step 2.
