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

Last updated on 28 June 2023 · 2 min read

Admin
Search

Overview and Solution

When indexing, there is a threshold for the number of indexed objects after which they are written to the search engine. Usually, there is no need to adjust the threshold, but in some special situations it might save your day. For example, if you are using M-Files Server version 23.5.x or earlier and the indexer hits a file that it cannot index, it will discard the whole batch and start it again. This will lead to a continuous loop that might take a long time to notice. By decreasing the batch size, some additional objects may get indexed before hitting the erroneous one. In addition, small batches make it easier to detect the problematic file.
The setting for changing the batch size is inside the corresponding index. All indexes have their own threshold and dtSearch has separate settings for MetaData and FileData. The setting is in Advanced Vault Settings:
Configuration > Search > Indexes (x) > corresponding index
The indexJobBatchSize setting has to be added to the JSON like below.
…
    },
    "additionalOptions": {
        "generatedIndexName": "MF-{17E2AF7E-D782-4573-84EF-94CAE7CD30A0}",
        "partitionCount": 1,
        "useLanguageAnalysis": false
    },
    "indexJobBatchSize": 50,
    "configurationType": "legacy",
    "arrayElementGuid": "381aa2a8-f01e-4899-badc-1c288a5575c4"
}

The default value for the setting depends on the search engine:
IDOL: 1000
Smart Search: 1000
dtSearch/MetaData: 1 000 000
dtSearch/FileData: 250 000

Note: M-Files Server service restart is needed for the changes to take effect.
 

Still need help?