Hacker News new | ask | show | jobs
by kibwen 2755 days ago
Fun example of this: last week I was trying to figure out all the floating point operations that can produce NaN. Go ahead and try searching Google for "ways to make nan"; it's going to show you dozens of pages of naan recipes, and there isn't even a link to click to make it actually search for what you've typed (instead there's a link for Did you mean "ways to make naan"?, which shows a different set of naan recipes).
6 comments

Although the tailored results have been useful, I think I still like the days back when you needed search operators. I was once looking up stuff about electrons (the particle). A plain query of electron only returned results for the framework on my first page. Understandable.

The other annoyance is the lack of Wikipedia results. For a general topic, I like to have a few pages to chooses from about the topic in addition to Wikipedia. Rarely are Wikipedia results in my organic listing unless I specifically add wiki or Wikipedia.

By the way, this[0] is how to search your query.

[0]: https://www.google.com/search?q=ways+to+make+%22nan%22+-%22n...

Interesting. Wikipedia what my top result when I DDG'd "floating point operations that produce NaN"
Did you try your own sentence "floating point operations that can produce NaN." "Making nan"is a very tricky query, because it has no context that is related to floating point. I think it is not fair to expect anything else. If you give a slight context like "operations that make nan" you will get results.
Yeah, "ways to make nan", even being familiar with the domain, is an extremely unintuitive way to phrase that query.
Holy cow that's bad. It says: Showing results for ways to make naan. Search instead for 'ways to make nan'.

Fair enough, so click on the Search Instead and it says "Did you mean: ways to make naan" and then shows a bunch of links about breadmaking anyways.

You can use: ways to make +"nan"

Disclaimer: didn't test it, but I often use this trick to force G to use some word, and to use it exactly as written.

Google dropped support for + years ago but you could try using -naan and "nan".

https://support.google.com/websearch/answer/2466433

OMG, well that could've been made more known. Wonder what the cumulative cost to my life has been.
Ha, what do you know... :D I actually always use startpage.com, but since they are using Google, I assumed they passed this query to it. What is interesting is that this trick still works on startpage.com while it doesn't on google... I must say I'm even less impressed by Google search than I was before. It's getting worse and worse.
wow I didn't know that
a search for your question "all the floating point operations that can produce NaN" gave useful results for me.
Its too bad it ignores the case of NaN (and other queries)
idk, but I think they employ multiple tokenizing strategies, including case insensitive, case sensitive,by words, by n-grams of letters...