Calculate context boost for search results based on entry hints matching current context.
Summary
Functions
Apply context boost to a list of search results.
Calculate context boost for an entry given its context hints and current context.
Calculate boost with custom parameters.
Functions
Apply context boost to a list of search results.
Calculate context boost for an entry given its context hints and current context.
Parameters
entry_hints- Map of context hints from the entry (e.g., %{repo: "owner/repo", os: "linux"})current_context- Map of currently detected context
Returns
A float between 0.0 and @max_boost representing the boost to add to the score.
Calculate boost with custom parameters.