Search Engineer
A search path covering full-text search, TF-IDF, bloom filters, tries and autocomplete, fuzzy matching, and sharding.
Path overview
搜索引擎需要在索引、排序与召回之间做精细权衡。本路径从无 LIKE 扫描的全文检索出发,覆盖 TF-IDF 关键词提取、布隆过滤器去重、Trie 前缀自动补全、编辑距离与 Jaro-Winkler 模糊匹配、子串搜索,并以分片收尾。
This path balances indexing, ranking, and recall: full-text search without LIKE scans, TF-IDF keyword extraction, bloom-filter dedupe, trie-based autocomplete, edit-distance and Jaro-Winkler fuzzy matching, substring search, and sharding.
Execute "Add Full-Text Search Without LIKE Scans" end to end, then repeat the last step with one parameter changed and compare "Replace slow ILIKE searches with a maintained tsvector column and ranked full-text queries.".
Next step: Extract TF-IDF Keywords from Text Documents
⏱ 0.5h
Run the search snippet "Extract TF-IDF Keywords from Text Documents", capture stdout, and show which line demonstrates the documented behavior: "Rank the most distinctive keywords in a small document set with term frequency, inverse".
Prerequisites: Add Full-Text Search Without LIKE Scans
Next step: Bloom Filter With Double Hashing
⏱ 0.75h
Adapt "Bloom Filter With Double Hashing" to a second input and compare the new output with the behavior described in "the BloomFilter entry point".
Prerequisites: Extract TF-IDF Keywords from Text Documents
Next step: Bloom Filter Membership Test
⏱ 0.75h
Execute "Bloom Filter Membership Test", change one constant, and describe how the output diverges from "Test set membership with a compact Bloom filter using double hashing, a configurable error".
Prerequisites: Bloom Filter With Double Hashing
Next step: Trie Autocomplete With Weighted Words
⏱ 0.75h
Run the search snippet "Trie Autocomplete With Weighted Words", capture stdout, and show which line demonstrates the documented behavior: "Store weighted words in a case-insensitive trie and return autocomplete suggestions ranked".
Prerequisites: Bloom Filter Membership Test
Next step: Trie for Prefix Search and Autocomplete
⏱ 0.75h
Adapt "Trie for Prefix Search and Autocomplete" to a second input and compare the new output with the behavior described in "Insert weighted words into a trie, autocomplete by prefix, rank suggestions by weight, and".
Prerequisites: Trie Autocomplete With Weighted Words
Next step: Levenshtein Edit Distance With Backtrace
⏱ 0.75h
Execute "Levenshtein Edit Distance With Backtrace", change one constant, and describe how the output diverges from "Compute edit distance over Unicode code points and reconstruct insert, delete and substitute".
Prerequisites: Trie for Prefix Search and Autocomplete
Next step: Jaro-Winkler String Similarity
⏱ 0.75h
Run the search snippet "Jaro-Winkler String Similarity", capture stdout, and show which line demonstrates the documented behavior: "the jaroSimilarity entry point".
Prerequisites: Levenshtein Edit Distance With Backtrace
Next step: KMP Substring Search With Prefix Table
⏱ 0.75h
Adapt "KMP Substring Search With Prefix Table" to a second input and compare the new output with the behavior described in "the assertString entry point".
Prerequisites: Jaro-Winkler String Similarity
Next step: Natural Sort With Numeric Order
⏱ 0.75h
Execute "Natural Sort With Numeric Order", change one constant, and describe how the output diverges from "Sort file names and labels naturally so item2 comes before item10, using Intl.Collator with".
Prerequisites: KMP Substring Search With Prefix Table
Next step: Regular Expression Tester
⏱ 0.75h
Feed a representative input into "Regular Expression Tester" and verify "Test regular expressions against sample text with live match highlighting, capture group" by hand.
Prerequisites: Natural Sort With Numeric Order
Next step: Rank Documents with Term Frequency and IDF
⏱ 0.25h
Build "Rank Documents with Term Frequency and IDF" for search code and verify [{id:d1,score:2.7489},{id:d2,score:0.9163},{id:d3,score:0.9163}] against both samples.
Next step: Capstone: Search Engineer
⏱ 0.5h
Deliver the "Build a Full-Text Search API on PostgreSQL" blueprint with "Generated tsvector column" working and "GIN index" recorded as evidence.
Prerequisites: Rank Documents with Term Frequency and IDF
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h