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 - MORE FILEDATA, THE EFFECT OF CHANGING MaxFieldLengthKB

Last updated on 28 February 2021

Admin
Search

1.    The idea of indexing and its limitations


The base rationale of indexing is to have the search results fast. To accomplish that, we either have to have ridiculously powerful server to search directly from the database or we have to simplify or even downsize things so that less powerful server can do the job equally fast. In its most basic form, index is just a huge text file where each row has one object and its indexed data. This is the form that is best suited for computer CPU when considering speed. But as we know, nowadays things are not that simple. We are using more and more relations in indexing to have features like understanding compound words. Computers do not like relations. This brings us to the fact, that indexing everything is not viable anymore.

By default, we index maximum of 100 Kb of FileData from every object. That means 100.000 characters or roughly 21 pages of text from the beginning of the document.
 

2.    Safe limits and effects when exceeding them


If there is a need for indexing more FileData, following registry setting should be changed.

Path: HKLM\SOFTWARE\Motive\M-Files\[version]\Server\MFServer\VaultOptions\[vault GUID]\Indices\[IDOL index GUID]
Name: MaxFieldLengthKB
Type: DWORD
Value: decimal from 1 to 500 (default: 100)

No restart needed. After adding the value, all new and edited material will follow that rule. Other material should be re-indexed.

As seen in the specification the maximum value is 500. That is our recommendation for the maximum and that would include roughly some 100 pages of text. If the number is exceeded it will start to slow down the search times, indexing times and IDOL compacting times. In addition, the size of the index will grow even if we stick inside safety limits. It is good to understand that changing the value from default 100 into 200 has a potential to double the index size although it is not likely in real life scenarios.

Based on this information it should always be considered carefully, whether we want to increase the indexed FileData size? Is it only for few specific documents? Do we know what kind of documents we have i.e. what is the actual outcome of increasing the size? After all, we still cannot index the contents of for example the whole book.

Still need help?