Module rank
Expand description
Merging hits from different sources.
Each source finds and ranks its own hits (through a SearchCatalog
or a ListIndex); a surface that shows several sources in one list
merges them by their provider bias and how the query meets the title
each hit shows, so an exact visible title beats a weak match from
another source.
Structs§
- Field
Weight - The share of
MAX_FIELD_RANKa match in one field is worth, in percent.
Enums§
- Match
Tier - How strongly a query matched one field; later variants are stronger.
Functions§
- match_
tier - The tier at which folded
querymeets foldedtext, if it occurs: exact, prefix, a later word start, or anywhere. - result_
relevance - How the query meets one displayed hit, for merging sources: the tier in its title, else in its subtitle at subtitle weight.