Direct access to simple UI:
Google Advanced Search
Summary of Google Search Engine Advanced Search Commands and Complete Examples - EvanLi's Blog
Search Ideas#
Solution Ideas#
- Word selection
- Optimization
- Reverse engineering
- Transformation
Syntax#
Common syntax:
Search Operator | Function | Example |
---|---|---|
" " | Search for results containing specific words or phrases. | "steve jobs" |
OR | Search for results related to X or Y. | jobs OR gates |
` | ` | Same function as OR . |
AND | Search for results related to X and Y. | jobs AND gates |
- | Search for results that do not contain specific words or phrases. | jobs -apple |
* | Wildcard, matches any word or phrase. | steve * apple |
( ) | Group multiple search conditions. | (ipad OR iphone) apple |
define: | Search for the definition of a word or phrase. | define |
cache: | Find the latest cached version of a webpage. | cache.com |
filetype: | Search for specific types of files (e.g., PDF). | apple filetype |
ext: | Same function as filetype: . | apple ext |
site: | Search for results from a specific website. | site.com |
related: | Search for websites related to a given domain. | related.com |
intitle: | Search for pages with specific words in the title tag. | intitle |
allintitle: | Search for pages with multiple words in the title tag. | allintitle iphone |
inurl: | Search for pages with specific words in the URL. | inurl |
allinurl: | Search for pages with multiple words in the URL. | allinurl iphone |
intext: | Search for pages with specific words in the content. | intext iphone |
allintext: | Search for pages with multiple words in the content. | allintext iphone |
weather: | Search for the weather in a specific location. | weather francisco |
stocks: | Search for stock information. | stocks |
map: | Force Google to display map results. | map valley |
movie: | Search for information about movies. | movie jobs |
in | Convert one unit to another. | $329 in GBP |
source: | Search for results from a specific source in Google News. | apple source |
before: | Search for results before a specific date. | apple before:2007-06-29 |
after: | Search for results after a specific date. | apple after:2007-06-29 |
Note:
- The colon is an English colon
- There is no space before the colon
- Commands should be separated by spaces, e.g.,
C++ filetype:pdf
, with a space before filetype
Tampermonkey Script#
For convenience, I also created a simple script:
Advanced Search Assistant for Google
The following is the original data:#
Serial Number | Syntax | Syntax Description | Example | Example Description |
---|---|---|---|---|
1 | + | Same as AND, search for results containing multiple keywords | Search + engine | Search for pages containing both "search" and "engine" |
2 | OR | Or | Search OR engine | Search for pages containing either "search" or "engine" |
3 | - | Minus sign, pages that do not contain the word after the minus sign | Search engine - baidu | Search for pages about "search engine" excluding "baidu" |
4 | “” | Double quotes, exact match | “search engine” | Exact match for the keyword "search engine" |
5 | * | Asterisk, wildcard, fuzzy search, asterisk replaces a word | Search * engine | Asterisk can replace any word |
6 | @ | Add @ before words used for searching social media | trump @ twitter | Search trump's twitter |
7 | $ | Add $ before numbers to search for specific prices | camera $ 400 | Search for camera priced at $400 |
8 | # | Search for # tags | # throwbackthursday | Search for tag throwbackthursday |
9 | .. | Two dots, add .. between two numbers to perform a range search | camera 500 .. 1000 | Search for cameras priced between 500 and 1000 |
10 | filetype | Search for resources of a specific file type | C++ filetype :pdf | Search for C++ web resources of type pdf |
11 | site | Search within a specified site | C++ site :https://www.zhihu.com | Search for C++ related pages on Zhihu |
12 | cache | View the Google cached version of a website, display the cached page | cache .com | View the Google snapshot of Weibo |
13 | info | Add info: before a URL to get website details | info: github.com | Search for details about the github website |
14 | related | Search for pages related to a certain website | related: sina.com | Search for other websites similar to Sina |
15 | link | Return all pages linking to a certain URL | link: www.csdn.net | Search for all pages containing links to "www.csdn.net" |
16 | inurl | Search for pages where the query appears in the URL | inurl: search engine | Search for pages with "search engine" in the URL |
17 | intitle | Search for pages where the query appears in the page title, supports Chinese and English | intitle: search engine | Search for pages with "search engine" in the title |
18 | intext | Search for pages where the query appears in the body text, supports Chinese and English | intext: SEO intext: search engine | Search for pages containing "search engine" in the body text for "SEO" |
19 | inanchor | Search for pages with backlinks containing the search term | inanchor: apple | Search for pages with "apple" in the anchor text |
20 | allinurl | Pages where the URL contains multiple keywords | allinurl: SEO search engine optimization | Equivalent to: inurl: SEO inurl: search engine optimization |
21 | allintitle | Pages where the title contains multiple keywords | allintitle: SEO search engine optimization | Equivalent to: intitle: SEO intitle: search engine optimization |
22 | allintext | Pages where the body contains multiple keywords | allintext: SEO search engine optimization | Equivalent to: intext: SEO intext: search engine optimization |
23 | allinanchor | Pages where the anchor text contains multiple keywords | allinanchor: SEO search engine optimization | Equivalent to: inanchor: SEO inanchor: search engine optimization |
24 | weather | weather/time/sunrise/sundown + city name, returns the weather/time/sunrise/sunset for the city | weather: beijing | Display the weather in Beijing |
25 | music | Or use songs , artist name + music/songs | Jay Chou music | Return various songs by Jay Chou |
26 | imagesize | Limit image size—(search on Google Images) | imagesize:2560x1440 |
Effective Search Operators#
Search Operator | Function | Example |
---|---|---|
" " | Search for results containing specific words or phrases. | "steve jobs" |
OR | Search for results related to X or Y. | jobs OR gates |
` | ` | Same function as OR . |
AND | Search for results related to X and Y. | jobs AND gates |
- | Search for results that do not contain specific words or phrases. | jobs -apple |
* | Wildcard, matches any word or phrase. | steve * apple |
( ) | Group multiple search conditions. | (ipad OR iphone) apple |
define: | Search for the definition of a word or phrase. | define |
cache: | Find the latest cached version of a webpage. | cache.com |
filetype: | Search for specific types of files (e.g., PDF). | apple filetype |
ext: | Same function as filetype: . | apple ext |
site: | Search for results from a specific website. | site.com |
related: | Search for websites related to a given domain. | related.com |
intitle: | Search for pages with specific words in the title tag. | intitle |
allintitle: | Search for pages with multiple words in the title tag. | allintitle iphone |
inurl: | Search for pages with specific words in the URL. | inurl |
allinurl: | Search for pages with multiple words in the URL. | allinurl iphone |
intext: | Search for pages with specific words in the content. | intext iphone |
allintext: | Search for pages with multiple words in the content. | allintext iphone |
weather: | Search for the weather in a specific location. | weather francisco |
stocks: | Search for stock information. | stocks |
map: | Force Google to display map results. | map valley |
movie: | Search for information about movies. | movie jobs |
in | Convert one unit to another. | $329 in GBP |
source: | Search for results from a specific source in Google News. | apple source |
before: | Search for results before a specific date. | apple before:2007-06-29 |
after: | Search for results after a specific date. | apple after:2007-06-29 |
Unstable Search Operators#
Search Operator | Function | Example |
---|---|---|
#..# | Search within a range of numbers. | iphone case $50..$60 |
inanchor: | Search for pages with backlinks containing specific anchor text. | inanchor |
allinanchor: | Search for pages with backlinks containing multiple words in the anchor text. | allinanchor iphone |
AROUND(X) | Search for pages where two words or phrases appear within X words of each other. | apple AROUND(4) iphone |
loc: | Find results for a specific location. | loc:"san francisco" apple |
location: | Find news for a specific location in Google News. | location:"san francisco" apple |
daterange: | Search for results within a specific date range. | daterange:11278-13278 |
Deprecated Search Operators (No longer effective)#
The following search operators are no longer effective and have been deprecated by Google:
Search Operator | Function | Example |
---|---|---|
#..# | Search within a range of numbers. | iphone case $50..$60 |
inanchor: | Search for pages with backlinks containing specific anchor text. | inanchor |
allinanchor: | Search for pages with backlinks containing multiple words in the anchor text. | allinanchor iphone |
AROUND(X) | Search for pages where two words or phrases appear within X words of each other. | apple AROUND(4) iphone |
loc: | Find results for a specific location. | loc:"san francisco" apple |
location: | Find news for a specific location in Google News. | location:"san francisco" apple |
daterange: | Search for results within a specific date range. | daterange:11278-13278 |