Skip to main content

Module search

Module search 

Source
Expand description

Fuzzy search over the graph — multi-signal ranking with CamelCase/snake_case tokenisation, token overlap scoring, and edit-distance typo tolerance.

Ranking signals (higher score = better match):

  • exact name match: +100
  • prefix name match: +60
  • all query tokens match name tokens: +50
  • substring in name: +30
  • partial token overlap: +10..+25
  • edit distance ≤1 (typo): +20
  • edit distance ≤2: +10
  • substring in qualified_name only: +10
  • shorter names break ties
  • kind boost: Function/Method/Struct/Trait > others

Structs§

SearchHit

Functions§

search
Run a fuzzy search across all nodes on branch.