Built-in ranking rules are the core of Meilisearch’s relevancy calculations.
words
rule works from right to left. Therefore, the order of the query string impacts the order of results.For example, if someone were to search batman dark knight
, the words
rule would rank documents containing all three terms first, documents containing only batman
and dark
second, and documents containing only batman
third.sort
ranking rule is in a higher position, sorting is exhaustive: results will be less relevant but follow the user-defined sorting order more closely. When sort
is in a lower position, sorting is relevant: results will be very relevant but might not always follow the order defined by the user.
sort
search parameter. If a search request does not contain sort
, or if its value is invalid, this rule will be ignored.vogli
: 0 typovolli
: 1 typotypo
rule sorts the results by increasing number of typos on matched query words.