Posts tagged “search”

  1. How do you match messy part numbers to a catalog?

    Customers write 'brg-6204 2rs', 'BRG62O4RS' and 'sealed bearing 6204'. Exact maps, normalised keys, edit distance and token overlap each catch a different kind of mess, and each has a data structure that keeps it fast at 100,000 parts. Measured.

    · 9 min read · Data Structures

  2. How do you build search autocomplete?

    For a catalogue of thousands of items, a sorted list and a binary search answer prefixes in microseconds. For popularity-ranked suggestions over millions of queries, precompute the top few completions for every prefix. Typo tolerance, debouncing and caching matter as much as the data structure.

    · 6 min read · System Design