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.

Full-Text Search with MongoDB — Flowdock Style

13 pointsby khangtohover 12 years ago

4 comments

rb2k_over 12 years ago
It's a nice hack, but I'd rather just use Elasticsearch and try out the MongoDB river (<a href="https://github.com/richardwilly98/elasticsearch-river-mongodb" rel="nofollow">https://github.com/richardwilly98/elasticsearch-river-mongod...</a>). There is a reason why Lucene exists. You'll gain insertion speed, use less RAM for your active working set with MongoDB, and gain TONS of features.
mattbillensteinover 12 years ago
It sure seems like by paying a little more technical due diligence up front and finding a proper search library [1] that could fit in their stack, they could have saved a lot of operational burden here.<p>Growing their main database indexes for this one feature seems like a loser.<p>1. Whoosh, Xapian, Lucene, etc?
Argorakover 12 years ago
From what I can glance from the post, this is a "poor man's" full-text search. It can search by keywords, but it does not seem to do stemming, word similarity, document similarity and all the nice things you love about Lucene and others. As far as the post explains, it also does not take term counts into account (which seems okay, as they don't have large documents). Also not sure how well it handles things like german umlauts (does "über" match "ueber"?).
评论 #4537170 未加载
tedchsover 12 years ago
Apparently HN is injesting a feed of:<p>select url from all_worldwide_blog_posts where content like '%MongoDB%'