5 comments

[ 3.6 ms ] story [ 22.1 ms ] thread
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.

Growing their main database indexes for this one feature seems like a loser.

1. Whoosh, Xapian, Lucene, etc?

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"?).
Apparently HN is injesting a feed of:

select url from all_worldwide_blog_posts where content like '%MongoDB%'