Jun 15, 2022 6:41:19 AM
Qlik Sense Search Folder is growing in size.
Smart search is the global search tool in Qlik Sense, enabling you to search the entire data set in your app from any sheet in the app. See Using Smart Search on the official Qlik Online Help for details.
This search is indexed to disk at %Share%/Apps/Search.
As time goes on, the index grows and commits more disk space.
The contents of the Qlik Sense Search folders can be deleted to free up disk space. The content pertains to App ID's, so it would be best to remove those which are not often used. The only effect this would have is increasing the amount of time needed to complete a Smart Search for this same App in the future.
Qlik Sense can also be configured to purge the Search Folder on a schedule. The setting will need to be applied in the settings.ini of either the Qlik Sense Enterprise Server or the Qlik Sense Desktop. For information on how to edit the settings.ini file, reference How to modify Qlik Sense Engine's Settings.ini.
Qlik Sense Server | %PROGRAMDATA%/Qlik/Sense/Engine/Settings.ini |
Qlik Sense Desktop | %USERPROFILE%/Documents/Qlik/Sense/Settings.ini |
Name
ServerPurgeSearchIndexFileInterval
Default Value
3600
Description
The purge system removes the unused search index files. In addition, it removes the oldest used search index files until the search index folder is smaller than ServerSearchIndexFileDirectoryMaximumSizeInMBytes.
Name
ServerSearchIndexFileDirectoryMaximumSizeInMBytes
Default Value
-1
Description
Maximum size of the search index directory in megabytes. During the periodic purge, old indexes are removed until the total size of index files is below this threshold. If negative, do not limit the size of the directory.
Make sure to add both parameters mentioned above into the settings.ini, the cleaning will happen at the specified intervall but only after the size limit is reached.
Is there a log file created when the directory is pruned, and if so where is it created? Also is there a way to set the timing on the tasks?
Hello @DWruck
I will look into this for you (though I am going to be out of the office until next week, so expect an answer sometime then).
All the best,
Sonja
I have set the Engine to log at information/debug level and was unable to find records of the purge.
Thank you for that, is there a criteria list for how the files are removed?
Hello @DWruck
Can you be more specific on what you mean with what criteria you are missing?
The criteria that we have listed are:
ServerPurgeSearchIndexFileInterval removed them at the given interval, beginning with the oldest unused. ServerSearchIndexFileDirectoryMaximumSizeInMBytes removes them when the specified size is given, again based on the oldest not used.
All the best,
Sonja
@Sonja_Bauernfeind I am trying to figure out the order in which the files are removed from the search directory, is it date-based or just random deletion?
@DWruck It goes by oldest (not used the longest) until the criteria for the cleanup is met (folder size smaller, etc).