News for hackers. Stuff that matters.

HN Search updated again

We have just updated HN Search (http://hn.algolia.com) with major improvements:

- Mobile version: it now works just like your desktop version. You can select what you want to search (all, story, comment, poll) and refine/sort your queries by date (last 24h, past week, past month, forever).

- Phrase queries: they are now supported in the parser using "" syntax. This syntax also disables prefix search and typo tolerance for the terms of the phrase query.

- Not: we have added support of negative terms in your query (using -term syntax).

As usual, your feedback is more than welcome. We also appreciate pull requests & feature requests on our GitHub repository: https://github.com/algolia/hn-search

( 29 comments | 34 points | on HN )
Re:HN Search updated again by bmelton on Saturday March 22, 2014 @07:13PM (#7451292)
I spent probably 20 a few days ago trying to find the HN discussion for the ElasticSearch 1.0 release (as I'd remembered there being some useful comments there about using ES as a document store, but not their exact contents), and ended up with nothing. Ultimately, I ended up spending another 45 minutes on the general internet trying to piece together the bits of the comment I remembered.

With the new update, I tried the same query as I had, and it was immediately the very first result.

BRILLIANT.

Re:HN Search updated again by teoruiz on Saturday March 22, 2014 @08:02PM (#7451437)
Care to link to that comment? :)
Re:HN Search updated again by bmelton on Saturday March 22, 2014 @08:35PM (#7451535)
Gladly:

https://news.ycombinator.com/item?id=7225589

It was more the thread in total than any single comment, but literally, that whole page was all but invisible to search just a few days ago.

Re:HN Search updated again by Curmudgel on Saturday March 22, 2014 @08:17PM (#7451484)
Please switch the default option from "story" to "all".

The legacy style screen has a minor rendering error in Firefox 31:

http://imgur.com/tkqCRGh

My comment from a previous story is still relevant:

The search results for stories show both the long (and useless) news.ycombinator URL and a link to the comments. Both links lead to the same location. The news.ycombinator URL displayed is redundant and adds visual noise. I've highlighted both links in the image linked to below.

I'd like it if the results showed "link", "parent", and "on $News_Story", like the old site did.

http://imgur.com/asHzSb1

Re:HN Search updated again by redox_ on Saturday March 22, 2014 @08:38PM (#7451547)
Make sense, I removed the useless link on stories and polls (keep it on comments, in order to jump on the associated comment in the HN thread using an anchor). I also deployed a CSS enhancement regarding the rendering error, is it better?
Re:HN Search updated again by Curmudgel on Saturday March 22, 2014 @09:27PM (#7451685)
The rendering error appears to have been fixed. Thank you.

Just out of curiosity, why is the default for search "story" instead of "all"? I believe that hnsearch.com's default was "all".

Re:HN Search updated again by redox_ on Saturday March 22, 2014 @09:47PM (#7451737)
We think most users are searching for stories, but maybe we're wrong. Btw, we're currently working on an analytics feature that process all queries performed on an Algolia account. I'll use it to count the number of queries performed on comments/stories/all. Data-driven isn't it? ;)
Re:HN Search updated again by Spittie on Saturday March 22, 2014 @08:34PM (#7451533)
Sorry for hijacking this, but can anyone that know someone at DuckDuckGo ask them to change !hn from http://hnsearch.com/ to http://hn.algolia.com/ ?

I've already contacted them with the form on their site a week or so ago, but it's still using the old search, which is not working anymore now.

Again, sorry for the hijack, but posting requests over here seems to be the fastest way to have something done.

Re:HN Search updated again by redox_ on Saturday March 22, 2014 @08:39PM (#7451552)
I asked for the update submitting the newbang form (https://duckduckgo.com/newbang), no reply so far. Help is really welcome :/
Re:HN Search updated again by redox_ on Monday March 24, 2014 @03:25PM (#7460726)
Seems !hn bang command has been updated \o/ Thank you guys
Re:HN Search updated again by _zekiel on Sunday March 23, 2014 @04:27PM (#7454978)
Thanks for the heads up! We're on it! The fix probably came in mid-update and didn't get included in this batch. Rolling out a hotfix for it shortly, though.
Re:HN Search updated again by _zekiel on Sunday March 23, 2014 @06:09PM (#7455433)
Should be fixed now! Thanks again.
Re:HN Search updated again by Spittie on Monday March 24, 2014 @09:17AM (#7458003)
Thank you!
Re:HN Search updated again by pelario on Tuesday March 25, 2014 @08:34AM (#7465412)
same issue in google.
Re:HN Search updated again by huxley2 on Saturday March 22, 2014 @07:03PM (#7451263)
It looks great on my iphone.

The only other thing I would request is perhaps the screenshots that appear on the desktop version?

Could you also possibly try to get somone to make the main HN site responsive on mobile? I'm surprised why this has not been done yet. It shouldn't take more than 5 minutes.

Re:HN Search updated again by redox_ on Saturday March 22, 2014 @07:07PM (#7451271)
Actually the screenshots are currently hidden on small screens in order to give more space to the worthy content. Maybe we could have an option to display them smaller.
Re:HN Search updated again by huxley2 on Saturday March 22, 2014 @07:10PM (#7451282)
Probably a good call.

What about the main HN site? Do you guys have any plans to make it responsive? It's just really hard to comment from your mobile device.

Re:HN Search updated again by _delirium on Saturday March 22, 2014 @08:06PM (#7451455)
Imo the default search shouldn't return hidden comments and stories. While it might sometimes be useful to do so, I'm finding it mostly results in spam showing up. As much as I do appreciate the opportunity to buy https://hn.algolia.com/?q=cheap+nike+shoes ...
Re:HN Search updated again by nathancahill on Saturday March 22, 2014 @08:14PM (#7451479)
I wonder why HN is a target for spam links like this? All URLs have nofollow so it's not for SEO. And most accounts that submit them are usually dead on arrival (or shortly after). So what's the upside here? People like you? Will you buy Nike shoes now?
Re:HN Search updated again by gk1 on Saturday March 22, 2014 @08:18PM (#7451489)
I don't think spammers think much before they act. Or they're just bots.
Re:HN Search updated again by nathancahill on Saturday March 22, 2014 @08:21PM (#7451502)
Sure, but even bots and spammers costs money. Seems like spamming HN is throwing money away.
Re:HN Search updated again by dangrossman on Saturday March 22, 2014 @11:35PM (#7452002)
The cost of running the bot ($0, since it's just desktop software you can run overnight while you sleep) is the same whether it automatically posts to 1,000 sites or 999. The bot itself [1] is also often free because, who'd've guessed it, people who spam links around the web indiscriminately have no problem with pirating software too.

1: http://www.botmasterlabs.net/

Re:HN Search updated again by redox_ on Saturday March 22, 2014 @08:17PM (#7451485)
Right, we've still some issues with some dead/deleted comments/stories being indexed. A full-reindexing is scheduled in the next few days and should fix it.
Re:HN Search updated again by greenyoda on Saturday March 22, 2014 @07:56PM (#7451419)
Could you please put a summary of all the available search options right on the search page?
Re:HN Search updated again by redox_ on Saturday March 22, 2014 @08:15PM (#7451480)
Yep, will be easier :) Just opened a feature-request about it. (https://github.com/algolia/hn-search/issues/25)
Re:HN Search updated again by superplussed on Saturday March 22, 2014 @07:43PM (#7451378)
Love the work you've done with this. The feature I'm always wishing you had was the ability to filter by number of comments in post as it's a pretty fair marker of relevance on alot of queries.
Re:HN Search updated again by redox_ on Saturday March 22, 2014 @07:48PM (#7451397)
Right, and actually I've opened a feature-request about that a few days ago (https://github.com/algolia/hn-search/issues/24). Gonna work on it in the next few days.
Re:HN Search updated again by dfc on Saturday March 22, 2014 @09:45PM (#7451729)
Feature Request: Use `by:` as a synonym for `author:`
Re:HN Search updated again by redox_ on Sunday March 23, 2014 @01:56AM (#7452313)
Done & deployed!