Overview
It is possible to see the whole index operation from data extraction to saving it to the IDOL in different logs. This document will describe, how the successful indexing should be look in corresponding logs and in chronological order. We are using CFS for the text extraction.NOTE 1! This document is valid for M-Files 20.9.x and beyond and IDOL version 12.x and beyond.
NOTE 2! Using this document requires basic understanding of IDOL components and terminology.
Prerequisites
Activate indexer log and verbose logging (1) inHKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\20.11.9539.0\Server\MFIndexer\Logging
Check
We start by checking-out and opening a document, editing it, saving and checking-in. After that, following happens.We start by going to look indexer log, usually in C:\Windows\Temp\MFilesLogs and open the latest combined indexer log named like MFIndexer-C840BE1A-5B47-4AC0-8EF7-835C166C8E24-Combined_LOG_20201230-130502Z_p8356.txt.
Indexer finds that there is a modified object:
2020-12-30T13:25:04.547Z t00003674 Checking for the availability of unindexed objects from MFServer.
2020-12-30T13:25:04.563Z t00003674 Response from MFServer: 1 objects available for indexing.
Object is downloaded to the temporary location. Note the object type (0), ID (557), format (txt) and the size of the file (96 bytes):
2020-12-30T13:25:04.679Z t00003674 Collecting files batch #1.
2020-12-30T13:25:04.679Z t00003674 <0-557> <614> <txt> <96 bytes> Preparing to download.
2020-12-30T13:25:04.710Z t00003674 <0-557> <614> <txt> <96 bytes> <index> <692>
2020-12-30T13:25:04.710Z t00003674 Collecting files batch #1 completed in 0 seconds (1 files; last partial batch).
Indexer generates the .idx file from the extracted data:
2020-12-30T13:25:08.350Z t00003674 Generating IDX data for 1 objects.
2020-12-30T13:25:08.350Z t00003674 <0-557> Generating metadata output.
2020-12-30T13:25:08.356Z t00003674 <MF-{17E2AF7E-D782-4573-84EF-94CAE7CD30A0}-0-557> Reading IDX file "A-MF-%7B17E2AF7E-D782-4573-84EF-94CAE7CD30A0%7D-0-557_614.idx".
2020-12-30T13:25:08.356Z t00003674 <MF-{17E2AF7E-D782-4573-84EF-2020-12-30T13:25:08.363Z t00003674
And sends it to IDOL. Note the size of the sent package (8057 bytes) and the completion and success entry:
2020-12-30T13:25:08.363Z t00003674 Sending IDX data to IDOL at 127.0.0.1:9001 using DREADDDATA. Size: 8057 bytes.
2020-12-30T13:25:08.379Z t00003674 Sending IDX data to IDOL at 127.0.0.1:9001 completed. Succeeded.
Next, we move to the IDOL side. It should be noted, that when editing or adding documents in daily-basis, the modifications go to the Daily engine, which is used as a fast change index between M-Files and main index.
In Daily's index.log it will receive data and command DREADD to add it to the index. Note the amount of the transferred data: Although not exactly as in the previous log entries, it is your best way to connect the two log entries with each other. Also, note [0], so called "thread". 0 means that the command to do something, 1 means that the engine is performing that command. Last, notice 3650.data. That is the file to follow in next entries.
30/12/2020 15:25:08 [0] 30-Normal: Streamed 0.86 kB (876 bytes) to disk in 0.00 secs. Rate 705.25 kB/s.
30/12/2020 15:25:08 [0] 30-Normal: Index Queue Command: /DREADD?c%3A%5CIDOL12%5Cdata%5CPROD1%2Dcontent%2D9000%5Cindex%5Cstatus/3650.data&createdatabase=true&dredbname=MF-%7b17E2AF7E-D782-4573-84EF-94CAE7CD30A0%7d_INTERNAL&killduplicatespreservefields=&KillDuplicates=NOOP
After each add, there will be DRESYNC to make indexed material visible for the searches:
30/12/2020 15:25:08 [0] 30-Normal: Index Queue Command: /DRESYNC
Next it is time for performing those commands:
30/12/2020 15:25:09 [1] 30-Normal: Index Queue Command: DREADD?c%3A%5CIDOL12%5Cdata%5CPROD1%2Dcontent%2D9000%5Cindex%5Cstatus/3650.data&createdatabase=true&dredbname=MF-%7b17E2AF7E-D782-4573-84EF-94CAE7CD30A0%7d_INTERNAL&killduplicatespreservefields=&KillDuplicates=NOOP
First, the add completes. Notice the time it took for the add:
30/12/2020 15:25:09 [1] 30-Normal: Done Indexing IndexID=3649
30/12/2020 15:25:09 [1] 30-Normal: Index command finished. Took 0.01 s
Then, the sync:
30/12/2020 15:25:09 [1] 30-Normal: Index Queue Command: DRESYNC
30/12/2020 15:25:09 [1] 00-Always: Successfully obtained lock on flush lock file \IDOLFlushLock\flushlock.txt.
30/12/2020 15:25:09 [1] 30-Normal: 112 terms in indexer.
…
30/12/2020 15:25:10 [1] 30-Normal: Sync Mapped Files...Completed
30/12/2020 15:25:10 [1] 30-Normal: Index command finished. Took 1.06 s
Now the document should be find with the client quick search.
