Disabling the Sorting of Search Results by Their Relevance
By default, M-Files sorts search results by their relevance.
For more information on how document relevance in relation to the search term is
determined, see Search result sorting.
This behavior can be prevented so that search results are sorted by user preference
instead. Make the following changes on the M-Files Server computer
to prevent search results to be automatically sorted by their relevance:
Open M-Files Named Value Manager.
Use the Server drop-down menu to select the
M-Files server and then the Vault drop-down menu to select the document vault.
Use the Storage Type drop-down menu to
select the MFConfigurationValue storage.
In the Namespace field, enter the following
value: M-Files.Core.Listing.SearchResults
Click Add... to add a new key.
In the left-side pane, double-click New Named Value
Key and enter the following value: RememberSearchResultsSortingCriteria
Select the newly added key, and in the right-side pane, enter the following
value: true
Your configuration in M-Files Named Value Manager should now be similar to
the example shown below.
Click Save and then close M-Files Named Value Manager if you no longer need it.
Optional: If you use the classic M-Files Web, make the following registry
change on the M-Files server computer:
The ID of the property by
which search results are sorted.
Value
<no value>
Empty the value to disable the sorting of search results
by their relevance in M-Files Web.
Use Windows Task Manager to restart the MFServer
service:
Right-click the taskbar and select Task Manager.
Result:The Task Manager window is opened.
Open the Services tab.
Right-click the MFServer service and select
Restart.
M-Files no longer forces search
results to be sorted by their relevance, and therefore users can change the column by
which search results are sorted and the user preference is retained in subsequent
searches.