News for hackers. Stuff that matters.

Ask HN: What do you need in HN search?

Based on your feedback we've come up with a new search UI that should better stick to HN's style: https://new-hn.algolia.com

Tell us what you think about it and what you'd like to see next (we're thinking for instance about adding search analytics on frequent queries in the last 24h/month/....)

Talking about next evolutions, we actually had something in mind and wanted to run it through HN's community. It's kind of crazy different so we hope we'll get tons of feedback on this one. This is an experimental skin with more search features and you can try on https://new-hn.algolia.com/?experimental

Here is a blog post explaining our reasoning about this experimental style: http://blog.algolia.com/try-new-experimental-version-hn-search/

We can't wait to get your comments and ideas!

( 55 comments | 66 points | on HN )
Re:Ask HN: What do you need in HN search? by boundlessdreamz on Monday January 12, 2015 @12:32PM (#8875125)
1. A more powerful time filter would be very useful (Last week, last month, last year, custom range where dates can be picked).

Without this search is not very useful to me at the moment. So I use Google to search HN since they do offer a filter

2. Points filter and comments filter would also be great (> 10 points and/or > 5 comments). I get lot of results which have no activity

Re:Ask HN: What do you need in HN search? by faizshah on Monday January 12, 2015 @12:51PM (#8875262)
I agree, my biggest annoyance with HN search by far is the time filter. If I am looking for a post I saw a few weeks ago I have to search through a years worth of posts with my keywords in it (if it's between a year and a month ago).

I think a good feature to add to HN Search would be some kind of clustering of the same link. So if a link has been reposted many times you can see all the discussions of it in one result.

Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:34PM (#8875149)
1. Makes sense, good point!

2. Yes, there is actually a trick in the query syntax: if you use "points>10" you'll get all posts that have more than 10 points. I'll plug the filter on the number of comments as well (like comments>X). Do you think we should rather have sliders?

Re:Ask HN: What do you need in HN search? by boundlessdreamz on Monday January 12, 2015 @12:41PM (#8875187)
Sliders will probably make the UI a bit busy in the current version. If the syntax is easy, just linking to the syntax should be sufficient.

In your experimental UI, the sidebar can expose all these filters without cluttering up the main UI

Re:Ask HN: What do you need in HN search? by EC1 on Monday January 12, 2015 @02:22PM (#8875845)
How do you search HN with Google? My Google-fu is lacking.
Re:Ask HN: What do you need in HN search? by DanBC on Monday January 12, 2015 @02:23PM (#8875850)
inurl:news.ycombinator.com
Re:Ask HN: What do you need in HN search? by faizshah on Monday January 12, 2015 @03:15PM (#8876158)
"site:" will work better than "inurl:" I think "inurl:" limits the search to urls with "news.ycombinator.com" in their url while "site:" will only search the url "news.ycombinator.com" thus limiting the search to HN. So the search would be "site:news.ycombinator.com" then you just use search tools and limit the date.
Re:Ask HN: What do you need in HN search? by biot on Monday January 12, 2015 @02:08PM (#8875751)
The one thing I do like about the new search site is that it doesn't open everything up in a new tab... something that is an annoyance with the current search. Please keep it that way! If I want something in a new tab, I'll just Ctrl+Click on the link.

Some other issues:

* Stories which have no external URL (text submission only) have titles which are not clickable.

* Comment results link to the submitted URL of the story. I was expecting the link would go to the comment itself, though this is likely a personal preference. When I view an individual comment, I either want to see all the other comments on the story or see the context by navigating to the parent if the comment is a reply. Seldom would I expect to view a comment several replies deep and then want to read the story.

* Clicking on the time reference (eg: "an hour ago") takes you to the anchor for the comment within all comments in the story, whereas clicking the "comments" link takes you to the specific individual comment. This is backwards.

* The up arrow shown in results seems to have no function. While it preserves the HN feel, it breaks expectations by having a different behavior. As it's unlikely upvoting from an external site is going to ever work, this should be changed to some other visual indicator.

Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @02:23PM (#8875848)
Thank you for the detailed feedback; we'll work on that!
Re:Ask HN: What do you need in HN search? by Poiesis on Monday January 12, 2015 @12:29PM (#8875102)
Well, my large corporate employer uses Websense which seems to categorize hn.algolia.com as ("Category: hacking"), and blocks all queries (HN itself is fine). So I guess I'd say I need...search. Maybe you can get off the blacklist/on a whitelist?
Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:31PM (#8875117)
Oh, interesting :/ Is it the same on "new-hn.algolia.com"? (we removed the HTTP OPTION query that was performed to deal with extra headers & CORS -> maybe it didn't help).
Re:Ask HN: What do you need in HN search? by Poiesis on Monday January 12, 2015 @01:06PM (#8875389)
I can access new-hn though I can't say whether it's due to your changes. The https redirect adds an extra step because of a click through "this site could be evil" that Websense adds--I think it stores the acceptance for the http site, but then the https redirect happens which isn't registered on the "possibly evil" click through acceptance list so it initially fails. Manually going to the https version fixes this problem, though.

Man, I hate proxies.

Re:Ask HN: What do you need in HN search? by JDiculous on Monday January 12, 2015 @01:02PM (#8875358)
How about making the site responsive/mobile-friendly first before tackling search?
Re:Ask HN: What do you need in HN search? by Shipow on Monday January 12, 2015 @01:21PM (#8875487)
it's planned but we wanted to validate the layout before making all responsive.
Re:Ask HN: What do you need in HN search? by waxjar on Monday January 12, 2015 @01:43PM (#8875610)
This is how the website looks on my machine: http://i.imgur.com/j2bavtp.png. Horizontal scrolling only reveals more of the search results.
Re:Ask HN: What do you need in HN search? by timdorr on Monday January 12, 2015 @01:28PM (#8875526)
I think he means the main HN site, not the search site.
Re:Ask HN: What do you need in HN search? by jrsmitchell on Monday January 12, 2015 @12:36PM (#8875157)
I like the additional filtering in the experimental interface, for example to switch between "All" and "Hot". I could see that being quite useful. Though the experimental page has too much whitespace for my liking - I can see 5-6 stories on a page vs. 10 or so on the HN style page.

It would be great if it saved my preferences (Sort by, date range) since I usually end up flipping those values to the same thing.

One minor annoyance is "JavaScript" being picked up when I search for "java". Would be nice to have the option to search for whole words.

A very minor annoyance is usernames are treated the same as text in stories. If I search for 'IBM' for example, I'll get all stories submitted by user 'IBM'.

Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:38PM (#8875168)
Yes "prefixed" search is enabled by default as-you-type. Just press "Enter", it will disable it. Being able to totally remove the "prefixed" search makes sense however.
Re:Ask HN: What do you need in HN search? by ANTSANTS on Monday January 12, 2015 @03:44PM (#8876299)
I haven't been able to produce a reliable test case, but I have noticed that fairly often, I try to search for a story or comment that I know exists, that I distinctly remember seeing in the past, and I won't be able to find it. Then randomly, perhaps after reposting said article, I'll try again later, with the exact same search terms, and it will show up in the results. Then a few days later, I look it up again, and it doesn't show up anymore.

I'm sorry that that isn't a terribly helpful bug report, but I think you have a frustrating bug in your backend somewhere.

A more concrete issue present in both the old UI and the new one would be that there is some kind of problem with your search form such that, on iOS Safari, the multiple forms control with the little arrows to select between fields pops up, even though there is only one field. This means you cannot see the search results while you are typing, when you would otherwise be able to see at least the title of the first result. Also, hitting "Go" (or now "return") doesn't make the input control go away, you have to hit the X next to the field select arrows to view the results, which manages to trip me up every time. I'm not a web guy though, so I don't know if that last one is inevitable for this kind of form or something.

Re:Ask HN: What do you need in HN search? by evanwolf on Monday January 12, 2015 @10:02PM (#8877877)
People.

I'd love to see people-search-results beside the regular results. Who were the top submitters and commenters on links/comments related to my search? so HN identities like jlemoine.

Bonus points for people mentioned as subjects or authors in the stories/comments (and the articles the links point to) without an HN identity. Recognizing human names would be huge. Searching HN for Captain America, Linus, Steve Jobs, Paul Graham, or your own name should be popular.

Re:Ask HN: What do you need in HN search? by getpost on Monday January 12, 2015 @12:53PM (#8875280)
A search URL that does not change, preferably hosted on ycombinator.com. A search URL that does not redirect to Octopart, bless their hearts.
Re:Ask HN: What do you need in HN search? by ludwigvan on Monday January 12, 2015 @12:33PM (#8875136)
Notifications like Google Alerts. Whenever I add some certain topics, I want to be notified if someone adds a comment with those words.
Re:Ask HN: What do you need in HN search? by tomw1808 on Monday January 12, 2015 @01:52PM (#8875668)
Guys I love your search, but what I am missing is that you index the content behind the headlines. So I've build my own, for example:

http://search.nagrgtr.com/#/search?q=greater%20than%2030kmh%...

Re:Ask HN: What do you need in HN search? by binarymax on Monday January 12, 2015 @12:25PM (#8875078)
I ran into a problem today where I'm trying to find something I saw a really long time ago - so sorting by date from oldest to newest would be great.

EDIT - If I can filter by date ranges like others have suggested, I would much prefer that to my sort direction request!

Re:Ask HN: What do you need in HN search? by vblord on Monday January 12, 2015 @01:03PM (#8875364)
I do this all the time. I need to go to google and hope I can find it. I usually only remember some small thing about it... like "flights" or "data set". Sorting by date it was on the front page of HN would be best for me.
Re:Ask HN: What do you need in HN search? by steveklabnik on Monday January 12, 2015 @12:32PM (#8875126)
I _always_ immediately turn the settings to "All" and "sort by date"
Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:42PM (#8875205)
Oh btw, your post is highlighted in our blog post Steve :) http://blog.algolia.com/try-new-experimental-version-hn-sear...
Re:Ask HN: What do you need in HN search? by steveklabnik on Monday January 12, 2015 @12:43PM (#8875212)
Ha, neat! :)
Re:Ask HN: What do you need in HN search? by sixothree on Monday January 12, 2015 @01:11PM (#8875424)
The ability to search only my saved articles. I'm guessing HN does no link click tracking, but searching viewed articles would be nice. These would be especially useful if the text on the target page were indexed as well.
Re:Ask HN: What do you need in HN search? by Shipow on Monday January 12, 2015 @01:28PM (#8875532)
You can star articles and limit your search to those articles by clicking on the 'Starred' tab from the left sidebar. Does it help?
Re:Ask HN: What do you need in HN search? by evanwolf on Monday January 12, 2015 @10:04PM (#8877884)
Permalink the query and add comments. So "https://new-hn.algolia.com/?experimental&query=GOTHAM%20-man... can become a destination for conversation.
Re:Ask HN: What do you need in HN search? by califield on Monday January 12, 2015 @12:23PM (#8875063)
Perhaps this is too far outside of your existing scope of functionality but I'll throw it out there: I would really love a "Hacker News Alerts" feature. I make the same searches every week on a few key terms but it's a manual process.

If you could push new search results directly to my inbox it would be convenient.

Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:25PM (#8875076)
We could partner with https://www.hnwatcher.com (using the HN Search API btw), they proposed us their help a few months ago.
Re:Ask HN: What do you need in HN search? by clarkm on Monday January 12, 2015 @12:37PM (#8875164)
Custom date ranges with a calendar picker!
Re:Ask HN: What do you need in HN search? by Shipow on Monday January 12, 2015 @01:15PM (#8875462)
It seems that you're not alone to need this feature https://news.ycombinator.com/item?id=8875125
Re:Ask HN: What do you need in HN search? by rgaidot on Monday January 12, 2015 @09:11PM (#8877722)
Good job ;-) just for fun, I've build my own - based on Elasticsearch http://hnpaper.forge.partlab.io
Re:Ask HN: What do you need in HN search? by lquist on Monday January 12, 2015 @02:14PM (#8875789)
I used to use HN Search until the Algolia switch. Now I use Google site search. Why? Algolia just doesn't help me find what I'm looking for.
Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @02:16PM (#8875802)
Could you share with us some failing queries, I would love to fix them.
Re:Ask HN: What do you need in HN search? by blablabla123 on Monday January 12, 2015 @12:34PM (#8875144)
Would be cool if it crawled the search terms of the target link. Often I try to find some HN post but I have problems thinking of the words in it.
Re:Ask HN: What do you need in HN search? by Shipow on Monday January 12, 2015 @01:04PM (#8875372)
Do you mean that some automatic tags would help you to remember the keywords for a future search?
Re:Ask HN: What do you need in HN search? by SuperKlaus on Monday January 12, 2015 @01:59PM (#8875719)
Shameless plug: HN Search http://hn.21zoo.com/
[deleted]
Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @12:36PM (#8875160)
Clickable with the experimental UI: https://new-hn.algolia.com/?experimental
Re:Ask HN: What do you need in HN search? by ianlevesque on Monday January 12, 2015 @12:54PM (#8875290)
I'd like something that searches the remote contents of the posted urls, sorted by date.
Re:Ask HN: What do you need in HN search? by taf2 on Monday January 12, 2015 @01:54PM (#8875687)
Search over only articles I have read - I often want to find an article I read last week
Re:Ask HN: What do you need in HN search? by detaro on Monday January 12, 2015 @01:14PM (#8875458)
The option to only search in titles, ignoring the full text of text posts.
Re:Ask HN: What do you need in HN search? by redox_ on Monday January 12, 2015 @01:17PM (#8875473)
By default the title is better ranked but then it will also fetch results in the text, you're right. It could actually makes sense. Just need to figure out the best way to use it (without flooding the UI). Maybe in the dropdown menu before the input or with a search syntax.
Re:Ask HN: What do you need in HN search? by detaro on Monday January 12, 2015 @10:28PM (#8877960)
I mostly search ordered by date (because I often try to find things again and have a rough idea when they were submitted), so I obviously don't see the ranking effect.
Re:Ask HN: What do you need in HN search? by Shipow on Monday January 12, 2015 @01:15PM (#8875466)
good point!
Re:Ask HN: What do you need in HN search? by digitalpacman on Monday January 12, 2015 @02:02PM (#8875726)
I don't. I use Google site search. It's never failed me.
Re:Ask HN: What do you need in HN search? by evanwolf on Monday January 12, 2015 @10:35PM (#8877980)
Link back to original HN entry. Can't see it.
Re:Ask HN: What do you need in HN search? by evanwolf on Monday January 12, 2015 @10:35PM (#8877977)
"Ask HN" as a search category.
Re:Ask HN: What do you need in HN search? by gtani on Monday January 12, 2015 @02:21PM (#8875838)
can you differentiate C#, C++, C? (I know n-grams means a much bigger lucene index when i looked into it)
Re:Ask HN: What do you need in HN search? by biomimic on Monday January 12, 2015 @01:19PM (#8875479)
A real customized algorithm based on vector space.
Re:Ask HN: What do you need in HN search? by nothrabannosir on Monday January 12, 2015 @01:29PM (#8875541)
Do you mean representing each user as a vector in an N-dimensional space for N = number of possible votes, then using the distance between them as indication of similarity to weigh their votes relative to your preferences?

If so, +1.

Re:Ask HN: What do you need in HN search? by biomimic on Tuesday January 13, 2015 @10:28AM (#8880392)
Um, yes distance being calculated by a smarter calculation than Pearsons or Euclidean, a variation of RV or something that closely mimicks the way our minds compare for similarity. No bag of words or naive Bayes. True probability.