News for hackers. Stuff that matters.
Re:How I hacked HN Search at the fHACKtory hackathon last we... by mauricesvay on Tuesday October 01, 2013 @09:44AM (#6476044)
I was expecting an article explaining how the search engine was built.
Re:How I hacked HN Search at the fHACKtory hackathon last we... by hobs on Tuesday October 01, 2013 @09:49AM (#6476074)
Same, searching HN is no "hack" unless it was done in a novel or interesting way. This might even be a cool hack, but I dont know!
Re:How I hacked HN Search at the fHACKtory hackathon last we... by wslh on Tuesday October 01, 2013 @10:37AM (#6476435)
I hacked HNSearch in the formal way in this article: http://blog.databigbang.com/ideas-and-execution-magic-chart/ python code is also here: https://gist.github.com/srw/1360455

Basically I could search beyond the HNSearch limits. The article is from 2011 so I don't know if it's working now.

Re:How I hacked HN Search at the fHACKtory hackathon last we... by redox_ on Tuesday October 01, 2013 @10:46AM (#6476511)
Nice post, I'll release the rails4-based source code before the end of the week. Hopefully with a blog post explaining the underlying ranking algorithm.
Re:How I hacked HN Search at the fHACKtory hackathon last we... by redox_ on Tuesday October 01, 2013 @10:08AM (#6476208)
I'll write a blog post about it in a few days. Thx for the feedback
Re:How I hacked HN Search at the fHACKtory hackathon last we... by jared314 on Tuesday October 01, 2013 @10:54AM (#6476565)
This looks like it is just crawling HN, and using Algolia to provide a search over that data. What exactly are you hacking?
Re:How I hacked HN Search at the fHACKtory hackathon last we... by redox_ on Tuesday October 01, 2013 @11:05AM (#6476634)
If by "hack" you mean "break/exploit/...", I totally agree. But hackatons are more codefests, calling "hack" every piece of code written in a short amount of time. That's only my 4-hours project implementing a custom crawler, work-arounding black-listing, and indexing it with Algolia. BTW, I'll write a blog post explaining the underlying ranking algorithm, which is the real point.
Re:How I hacked HN Search at the fHACKtory hackathon last we... by jared314 on Tuesday October 01, 2013 @12:04PM (#6477013)
It looks like it's only a couple of days of data. Are you crawling the pages directly or using the existing api [1]?

[1] https://www.hnsearch.com/api

Re:How I hacked HN Search at the fHACKtory hackathon last we... by ProAm on Tuesday October 01, 2013 @12:25PM (#6477167)
I search for "fracking" and only get back "tracking", "hacking" and "f__king" as results

"meteor" only brings back 2 results.

Re:How I hacked HN Search at the fHACKtory hackathon last we... by redox_ on Tuesday October 01, 2013 @12:29PM (#6477192)
Since the crawl started 3 days ago only, assuming that I fetch only the first 10 pages, lots of terms are not yet in the indexed corpus. But querying "fracking", you can at least see the typo-tolerant instant search in action ;)
Re:How I hacked HN Search at the fHACKtory hackathon last we... by ProAm on Tuesday October 01, 2013 @12:35PM (#6477232)
Ahh, makes sense. I thought you had 'primed' the results database with history first.
Re:How I hacked HN Search at the fHACKtory hackathon last we... by olive_ on Wednesday October 02, 2013 @07:04AM (#6481733)
Why does not "Ask HN" return results while "Show HN" does?
Re:How I hacked HN Search at the fHACKtory hackathon last we... by maximesalomon on Tuesday October 01, 2013 @10:01AM (#6476175)
Good stuff !