News for hackers. Stuff that matters.
Re:Get better at Googling by tyingq on Friday April 23, 2021 @09:19AM (#26914448)
The article is missing several operators that are useful. Like inurl:, intitle:, allintitle:, etc.

The "AROUND" proximity search is neat as well, especially for words with dual meaning. like:

bootstrap AROUND(6) cpu

Finds "bootstrap" within 6 words of "cpu", which culls out most (not all) of the unwanted results about the bootstrap js library.

This article seems to cover most of the ones I'm aware of: https://ahrefs.com/blog/google-advanced-search-operators/

Edit: Changed around(6) to AROUND(6). Apparently the lowercase version doesn't work, as it's highlighting the word "around" in the results.

Re:Get better at Googling by eitland on Friday April 23, 2021 @10:27AM (#26915113)
From the linked article:

> “search term”

> Force an exact-match search. Use this to refine results for ambiguous searches, or to exclude synonyms when searching for single words.

Author claimed they tested all of the operators, but this one in particular I can confirm haven't worked reliably for me for over a decade and across a number of machines and accounts.

Some times it can be traced down to things like me searching for "foo bar" and Google thinking

> He said foo. Bar immediately replied [...]

is a valid match which is kind of understandable.

But most of the time I can't really see why the page shows up at all. No trace when searching in the page nor in the page source.

Re:Get better at Googling by elondaits on Friday April 23, 2021 @12:04PM (#26916147)
Try opening the “Search tools” menu in the results page and selecting “Verbatim”... I think that makes “literal” searches work, because otherwise Google uses synonyms and language analysis to attempt to match your search to results.
Re:Get better at Googling by tyingq on Friday April 23, 2021 @12:43PM (#26916552)
The query parameter google adds for verbatim matches is tbs=li, so you can append that to the url, like

  https://www.google.com/search?q="somestring"&tbs=li
Some other uses of "tbs": https://stenevang.wordpress.com/2013/02/22/google-advanced-p...
Re:Get better at Googling by eitland on Friday April 23, 2021 @02:51PM (#26917871)
That too has consistently failed between 2007 and late 2020.

Now it just fails inconsistently (i.e. it sometimes works).

Re:Get better at Googling by vram22 on Friday April 23, 2021 @06:22PM (#26919894)
Google the company, runs on an algorithm of arbitrary complexity.
Re:Get better at Googling by blakesterz on Friday April 23, 2021 @09:27AM (#26914521)
I've found the "around" proximity search to be one of the most useful, if not THE most useful operators. It's SUPER useful if you're looking for something you just know someone must've already posted somewhere but you just can't find it!

It always reminds me of learning how to search databases back in the 90s when you had to pay by the minute and you really needed to know all the operators and how to use them! Old school librarian skills :-)

Re:Get better at Googling by kevin_thibedeau on Friday April 23, 2021 @08:42PM (#26921013)
AltaVista had this 25 years ago as the "near" operator. Early Google was relatively gimped in comparison with it's limited search syntax in comparison to the main incumbents.
Re:Get better at Googling by b215826 on Friday April 23, 2021 @05:02PM (#26919173)
The inurl: keyword is extremely useful when combined with the site: keyword, e.g.,

https://www.google.com/search?q=site:reddit.com+inurl:progra...

This would pull up results for "Vim tutorial" from the /r/programming subreddit. Of course, there are better ways to search by subreddit, but using site: and inurl: is the most website-agnostic way to narrow down results. Both these keywords also work on DuckDuckGo.

I also often use the "I'm Feeling Lucky" keyword "\" on DuckDuckGo, e.g., to search for lyrics

https://www.duckduckgo.com/?q=\rebecca+black+friday+lyrics

Re:Get better at Googling by the_pwner224 on Friday April 23, 2021 @06:29PM (#26919963)
You can just do site:reddit.com/r/programming :)
Re:Get better at Googling by b215826 on Friday April 23, 2021 @08:14PM (#26920804)
Of course, for Reddit that's definitely better. But there are cases where the inurl + site solution is the only possible one -- I'm a physicist and I often want to find papers from a specific journal, e.g., the Physical Review Letters. Now, I could use the search function on the journal's page, but in my experience that doesn't often give you good results. So I search PRL using the site:link.aps.org+inurl:PhysRevLett keyword, e.g.,

https://www.google.com/search?q=site:link.aps.org+inurl:Phys...

Re:Get better at Googling by dannyphantom on Friday April 23, 2021 @12:54PM (#26916682)
I saw this a few days ago on the front page of HN. Thought it was pretty good. https://www.gwern.net/Search
Re:Get better at Googling by tomduncalf on Friday April 23, 2021 @10:20AM (#26915032)
Wow had no idea most of these operators existed. Thanks for sharing (and to the original post too, I didn't know a couple of those e.g. before:)
Re:Get better at Googling by sharken on Friday April 23, 2021 @02:39PM (#26917725)
Same here, thought I was a master of Googling already, but good to learn something new.
Re:Get better at Googling by phreack on Friday April 23, 2021 @05:39PM (#26919536)
Sadly, every time I try to get technical with these when I'm trying to Google with precision, after two or three searches I start getting blocked by really hard Captchas, and messages saying I might be either a bot or a hacker. It's really annoying.
Re:Get better at Googling by Tagbert on Friday April 23, 2021 @05:42PM (#26919562)
Obviously a human user would never use such cryptic and complex search terms. /s
Re:Get better at Googling by orf on Friday April 23, 2021 @02:54PM (#26917898)
The first two results for "bootstrap AROUND(6) cpu" are about bootstrap though.

"bootstrap cpu" gives far higher quality results.

Re:Get better at Googling by tyingq on Friday April 23, 2021 @03:27PM (#26918253)
Yes, it's a difficult term. Even "bootstrap compiler" returns JS library results. I'm not claiming my example was the best one for demonstrating AROUND(N).
Re:Get better at Googling by deurzen on Friday April 23, 2021 @08:54PM (#26921106)
You can always try excluding JS-related hits: `bootstrap AROUND(6) cpu -js -javascript`
Re:Get better at Googling by discreteevent on Friday April 23, 2021 @03:19PM (#26918162)
This used to be in Altavista but I think it was NEAR. It was even more useful then when the default algorithms weren't great.
Re:Get better at Googling by devoutsalsa on Friday April 23, 2021 @12:41PM (#26916537)
I didn't know about AROUND(N), thanks.