This article is to explain how global text search results are sorted.
Global search results are sorted by relevancy. In order to return the most relevant search results, each record is given a score that represents its relevancy to the search.
Scores are calculated based on these three things:
- Frequency: How often the search terms appear in the document
- Sequence: How often the search terms appear in the same order as the search query
- Weight: How heavily weighted the source field is in which the search terms appear
We cannot control the sort order for the global search results, but admins can adjust the weight of fields to give more weightage to some fields than other fields to improve the search.
Here is a blog that explains more about global search results: The Mystery of Search Results — Solved in 7 Questions