In this blog, I’ll introduce a novel ranking algorithm called XRANK as a solution to boost the dynamic rank of items based on certain term occurrences within the match expression in Sharepoint 2013.
In the law firm business, there are lots of matters, and the attorneys always try to find out matters which are similar. For example, another matter is considered similar to the current matter according to the affinity for the following matching values. Any match within a tier trumps matches on subsequent tiers, while multiple matches within a tier would serve as a tiebreaker.
According to this similar matter sort rank rule, we can construct Keyword Query Language (KQL) queries for searching in SharePoint 2013 like this:
Matches “MatterType”, “Client” or “Industry” also boost the results which are the same “MatterType” by the constant rank boost of 1000, and boost the results which are the same “Client” by the constant rank boost of 100, etc. It means on the search results, the matters just with the same “MatterType” are considered as closer than the matters just with the same “Industry”. In addition, the final dynamic rank value is calculated as a sum of boosts across all XRANK operators. For example, the matters with the same “Client” and “Industry” are considered as closer than the matters just have the same “Client”.
You can get syntax reference describes XRANK operator in KQL queries here: