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/Troubleshooting/Common problems

Smart Search: quick search results may disappear after a bit if you do not have permissions

Last updated on 9 December 2024 · 4 min read

Admin
Search

Overview

When you perform a Quick Search (i.e., just click the search icon without entering metadata conditions - with or without a text in the search field), the results are shown, and after a little bit they may change and some results may be removed.

Details

With SmartSearch, the search results are first shown to get data to the user fast, and then a background tasks reviews the permissions of those results. This can cause some objects to be removed from the results if the current user does not have permission to see them.

Generally, this happens quickly, but in some situations it may take longer time (for example, overly complex permission structure in an external repo, or otherwise slow external repo) and thus the old results may remain on screen for a longer time and even seconds may pass while the user is seeing and perusing them until they disappear partially or entirely. 

Solution

Upgrade M-Files server to 24.3.13497.5 (March 2024) or later.

Ensure that the Network Folder Connector has the following settings in the connection configuration:

  • "Verify User Access to Objects from External Repository in Searches" in the General settings is set to "Yes".
    • Detailed location: External Repositories>Network Folder>Connection>Configuration>General Settings>Search Indexing
    • The default value for this setting is "No".
  • "Authentication" in General settings is set to "Personal".
    • Detailed location: External Repositories>Network Folder>Connection>Configuration>General Settings
    • The first setting above does not and should not have effect when "Authentication" is set to "Common", it is then expected that all files are shown.

NOTE: Enabling this check can cause searches that contain results from this external repository in the current user session to be considerably slower than before. For example, instead of seeing results in 1 second, and seeing some results disappear in 2-10 seconds, now the entire search may take 10 seconds.

Workarounds

This is a system behavior that optimizes the experience and speed for the majority of cases and situation and could not be changed prior to the March 2024 release, even if the "Verify User Access to Objects from External Repository in Searches" setting was set to "Yes".

There are a few things to consider that may be feasible and "improve" the situation for you if an upgrade is not possible:

  • If you can migrate all the objects from the slow external repository to the vault, and remove the external repository, this will likely speed up searches, and will also let you have more metadata and history for those objects.
    • This is a feasible improvement idea with or without an upgrade, you can consider this anyway due to the benefits vault objects have over Unmanaged and Managed objects from an external repository (see more here).
  • If you can simplify the permissions in the external repository, their evaluation may become faster.
  • Setting a NACL in the external repository for the "Use M-Files NACL" setting (defaults to "Never") that closely matches the actual permissions, this may show results initially that are closer to the final set of results. Note that changing this requires reindexing of the external repository which may be a slow operation. Note also that this does not prevent the background evaluation of actual permissions that can still change the results, and since it affects the entire repo, it is likely less flexible than its own permissions.
  • If the vault is small enough and will remain small enough, consider using dtSearch as the engine (note its limit).
  • Inform users to expect this behavior. Optionally (e.g., if many of them do not generally work with data from the external repo), they can add a default filter for the "repository" so searches default to the vault content only and not to external repos. 
  • Use a view for common searches you make or add a metadata condition in the search.

Still need help?