TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a full-text search engine in 150 lines of Python code (2021)

84 pointsby matt_daemon4 months ago

2 comments

jankovicsandras4 months ago
This is a good intro to text search. Shameless plug: If you throw in a bit more, ca. 250 SLOC, you can have BM25 search: <a href="https:&#x2F;&#x2F;github.com&#x2F;jankovicsandras&#x2F;bm25opt">https:&#x2F;&#x2F;github.com&#x2F;jankovicsandras&#x2F;bm25opt</a>
评论 #42811818 未加载
评论 #42811788 未加载
cocodill4 months ago
&gt; return [token for token in tokens if token]<p>I love that kind of bullshit poetry.
评论 #42811383 未加载
评论 #42811294 未加载
评论 #42811210 未加载