Overview
There are several parameters in the indexing path that control, how much of data from the file contents (= FileData) will be searchable after the indexing. The settings do not affect to MetaData, and it is always fully indexed. Different search engines use different set of parameters. This article will describe the usage of the parameters and the differences between search engines.Note ! This document is valid for M-Files 22.2.11149.3 and beyond.
Extraction, cache and index size
Text extraction means that the system extracts unique text contents from the document. After that, it will store the extracted "raw-text" into a cache and into IDOL.The cache is a folder structure under the FileData location. The meaning of cache is to speed up the indexing operation in the situation where only metadata is changed. This is because we always store both MetaData and FileData in the single pipeline architecture.
The size of the index is dependent on the amount of extracted text and how much we allow the system to store that to the search engine.
About the default values and recommendations
The values that are used by default and the recommendations are there for a reason and should be taken seriously. The default values are proved to work in most of environments reliably. In addition, they correlate the needs of our customers. In other words, most of our customers get the most of M-Files with the default values. Last, it should be noted that all MetaData is always indexed whatever the settings are.Increasing the values will increase the size of the index and potentially Filedata cache inside FileData folder. At some point it will start to degrade the system performance. That said, it is not advised to push the maximum recommended values.
Because IDOL and Smart Search are designed to search large number of documents with high performance, it is not intended to extract everything from the FileData. We should also remember the cache, which will use the space from the FileData disk. In the opposite direction, dtSearch is always indexing all the file contents. This is one of the reasons, why we recommend it to be used only for 1 million documents.
Note! If you are using Smart Search as a search engine, the maximum amount to save to the search engine is always 1 Mb. Anything above and the whole object will be discarded from the index.
The parameters
The following parameters are in chronological order, which can also be determined from their names and descriptions. Note, that not all search engines use all parameters, and the parameters use different size formats.
1. Maximum File Size for Indexing
Search engines: dtSearch, IDOL and Smart SearchLocation: Advanced Vault Settings (AVS from now on) > Configuration > Search > Full-Text Search
Description: The maximum file size allowed for a file in megabytes for it to be included in any indexing procedures. If the file is larger, it is not indexed at all.
Size format and default value: Mb, 256 (256 Mb)
2. Maximum Plain Text Length (bytes)
Search engines: IDOL and Smart SearchLocation: AVS > File Previews > Viewer Files
Description: Specifies the maximum length of plain, raw-text data to be extracted from files in bytes. It should be noted that, this is also the amount that is cached into the FileData location. The function for caching is to speed-up indexing in a scenario where only MetaData is modified. The single pipeline architecture always indexes both Meta- and FileData content and extracting/analyzing filedata is useless in that scenario.
This setting can limit the amount of text that is finally indexed. This happens if the value of the setting is smaller than "Maximum length of single file content" of the index in use. This setting can influence the system performance.
Size format and default value: bytes, 2097152 (2 Mb)
Maximum recommended value: 5000000 (5 Mb)
3. Maximum Length for Single File Content (kilobytes)
Search engines: IDOL and Smart Search
Location: AVS > Search > Indexes > [index name] > Additional Options > Limits for Indexed Data
Description: Maximum size of the extracted single file content. In multi-file-document, this parameter is for each file inside of it. This setting can influence the system performance.
Size format and default value: Kb, 100 Kb (0,1 Mb)
Maximum recommended value: 500 (0,5 Mb). This was previously 5000 (5 Mb), but real-life experiences have shown that it will easily have a negative impact on the performance.
4. Maximum Length of File Contents (kilobytes)
Search engines: IDOL and Smart Search
Location: AVS > Search > Indexes > [index name] > Additional Options > Limits for Indexed Data
Description: Maximum length of the file content for a single object (in kilobytes). In multi-file-document, this specifies the maximum value for all files inside MFD. If there are so many files that they won't fit to the limit, at least 2 Kb per file is stored.
Size format and default value: Kb, 900 (0,9 Mb)
Maximum recommended value: 5000 (5 Mb)
