TrueSearch on 27.0.0-RC.1: does Connect Plus actually raise the 1M file limit, given config.json hardcodes max_document_count=1M and max_index_size=10 GiB?

I’m evaluating TrueSearch/Spotlight on a Community Edition system (27.0.0-RC.1, upgraded from 22.12.4.2), registered with TrueNAS Connect Foundation. The SMB shares contain about 1.88M objects (files and directories, from df -i).

At startup, truesearch-init reports:

Product: COMMUNITY_EDITION, TrueNAS Connect: enabled (CONFIGURED, tier: FOUNDATION), Limit: Community + TrueNAS Connect Foundation: 1 million files
License limit: maximum 1000000 indexed files

The truesearch-init binary contains these tier limits: Community 10,000 / Connect Foundation 1M / Connect Plus 10M / Connect Business 100M / Enterprise unlimited.

However, /etc/truesearch/config.json is generated by the middleware template (etc_files/truesearch/config.json.py, same in stable/27 and master) with fixed values, regardless of tier:

"index_settings": { "max_index_size": 10737418240, "max_document_count": 1000000 }

The service also logs Max Document Count: 1000000 and Max Index Size: 10.0 GB separately from the license limit.

Questions:

  1. With Connect Plus (10M license limit), which limit does the truesearch service enforce: the license limit or max_document_count from config.json? If config.json wins, Plus doesn’t raise the effective limit above 1M.
  2. Is the 10 GiB max_index_size also meant to scale with the tier? With about 1.9M files, the index will very likely exceed 10 GiB.
  3. When a limit is reached, what is the behavior: indexing stops, oldest entries are dropped, or new files are skipped? Is it logged or raised as an alert?
  4. Since TrueSearch has no per-folder exclusion (only encrypted datasets are excluded), is there a supported way to limit the scope, for example to exclude image-heavy subtrees?

I’d rather get clarity before subscribing to Plus. Thanks.

This is what you should see on the logs after Plus is enabled, this is what I see on my personal box here.

truesearch-init: Verified: Product: COMMUNITY_EDITION, TrueNAS Connect: enabled (CONFIGURED, tier: PLUS), Limit: Community + TrueNAS Connect Plus: 10 million files

To answer your other questions in sequence:

2 - The index size limit doesn’t change with the tier. Based on our internal testing, about 1.9 million image files (heavy metadata) produced an index of of roughly 1 GiB.

3 - In the current release, limits aren’t enforced as a hard stop. That behavior changes for the .0 and it will simply stop adding new files to the index until the index drops below the threshold.

4 - To limit scope, include only the datasets you want indexed. A child dataset isn’t entered unless its explicitly listed. Excluding a folder inside an included dataset, or excluding by file type, isn’t supported today.

Thanks, very helpful. One follow-up on (1) and (3): the middleware still writes "max_document_count": 1000000 into /etc/truesearch/config.json regardless of tier (the service logs it as Max Document Count: 1000000, separately from the license limit). Once limits are enforced in 27.0, will a Plus system be capped by the license limit (10M) or by this config value (1M)? Is the template expected to follow the tier in 27.0?

Those config values were from early versions of the software. I’ll get with the middleware side to cleanup and not set that in the configuration file anymore, so we don’t confuse folks who are looking at config files manually :wink:

Thanks, that clears it up. Good to know the effective limit is the license tier and that the config values will be cleaned up.