Somewhat off-topic but congratulations, you have re-implemented (in the small) the search engine that powers HN. I say this as an employee of the company behind that engine, and I say this as someone who is intimately familiar with the codebase and with how the technology works.
With a little more effort towards scalability, and with some input from a devops co-founder, you'd be on your way to launching a state-of-the-art, market-competitive search engine.
My employer won't be too happy seeing me post this, but I don't care, this needs to be said.