Skip to content

Instantly share code, notes, and snippets.

@Dainerx
Last active February 29, 2024 10:49
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Dainerx/c91f97e4a9e2ad59cdb10fd46ad4d526 to your computer and use it in GitHub Desktop.
Save Dainerx/c91f97e4a9e2ad59cdb10fd46ad4d526 to your computer and use it in GitHub Desktop.
google engine advanced search cheat sheet

My personal Google search cheat sheet with examples.

Operators

- : execludes a term.

Search for Elon Musk but exclude the terms tesla or SpaceX elon musk -tesla -SpaceX


| : search for x or y.

Search for apples or oranges (see images) fruits(apple | orange)


AND : search for x and y

Search for apples and oranges (see images) fruits(apple AND orange)


* : wildcard

Matches everything, search for any type of pet pet *


filetype: : restrict results searches to a filetype

Search for articles only in PDF deeplearning articles filetype: pdf


site: : limit results to those of a specific site

Search for getting today's date in Java, results only from stackoverflow java get date site: stackoverflow.com


define: : search stricly for definitions

Search for definitions of the word programmer define: programmer


before: : search for results before a certain date

Search : for JavaScript before the year 2000 javascript before:2000


intext: : search for results that have a term in a page's content

See also allintext


intitle:: search for results with specific page's title

Search for conspiracy theories about climate change intitle: climate change is a hoax


inurl: : search for results with url term in them

Search for iPhone on website with apple in url iphones inurl:apple

@lrobidou
Copy link

Nice ! Some of them might definitely be useful :)

But shouldn't
"java get date :site stackoverflow.com"
be
"java get date site: stackoverflow.com"
instead ?

( s/:site/site: )

@Dainerx
Copy link
Author

Dainerx commented Nov 23, 2021

Hi @lrobidou glad you found them useful.

And yes you are absolutely right, that was a typo.

@lrobidou
Copy link

I wanted to merge a fix, but I couldn't find how to do it through the github web interface :)

@Dainerx
Copy link
Author

Dainerx commented Nov 23, 2021

I wanted to merge a fix, but I couldn't find how to do it through the github web interface :)

Sadly unlike GitHub, there are no PRs and contributions on gist. Only comments. Very appreciated though, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment