直达简单入门的UI:
Google 高级搜索
谷歌搜索引擎高级搜索、命令大全表格总结(完整示例说明) - EvanLi的博客
搜索思路
解决思路
- 取词
- 优化
- 反推
- 转化转换
语法
常用语法:
| 搜索操作符 | 功能 | 示例 |
|---|---|---|
" " |
搜索包含特定单词或短语的结果。 | “steve jobs” |
OR |
搜索与 X 或 Y 相关的结果。 | jobs OR gates |
| ` | ` | 与OR 功能相同。 |
AND |
搜索与 X 和 Y 相关的结果。 | jobs AND gates |
- |
搜索不包含特定单词或短语的结果。 | jobs -apple |
* |
通配符,匹配任何单词或短语。 | steve * apple |
( ) |
分组多个搜索条件。 | (ipad OR iphone) apple |
define: |
搜索词语或短语的定义。 | define:entrepreneur |
cache: |
查找网页的最新缓存。 | cache:apple.com |
filetype: |
搜索特定类型的文件(如 PDF)。 | apple filetype:pdf |
ext: |
与filetype: 功能相同。 |
apple ext:pdf |
site: |
搜索特定网站的结果。 | site:apple.com |
related: |
搜索与给定域相关的网站。 | related:apple.com |
intitle: |
搜索标题标签中包含特定单词的页面。 | intitle:apple |
allintitle: |
搜索标题标签中包含多个单词的页面。 | allintitle:apple iphone |
inurl: |
搜索 URL 中包含特定单词的页面。 | inurl:apple |
allinurl: |
搜索 URL 中包含多个单词的页面。 | allinurl:apple iphone |
intext: |
搜索内容中包含特定单词的页面。 | intext:apple iphone |
allintext: |
搜索内容中包含多个单词的页面。 | allintext:apple iphone |
weather: |
搜索特定位置的天气。 | weather:san francisco |
stocks: |
搜索股票信息。 | stocks:aapl |
map: |
强制谷歌显示地图结果。 | map:silicon valley |
movie: |
搜索关于电影的信息。 | movie:steve jobs |
in |
将一个单位转换为另一个单位。 | $329 in GBP |
source: |
从 Google News 中搜索特定来源的结果。 | apple source:the_verge |
before: |
搜索特定日期之前的结果。 | apple before:2007-06-29 |
after: |
搜索特定日期之后的结果。 | apple after:2007-06-29 |
注:
- 冒号为英文冒号
- 冒号前没有空格
- 命令前要用空格隔开,如
C++ filetype:pdf,filetype前面有空格
油猴脚本
为了方便,我还搓了个简单的脚本:
Advanced Search Assistant for Google
以下为原始数据
| 序号 | 语法 | 语法说明 | 示例 | 示例说明 |
|---|---|---|---|---|
| 1 | + |
同AND,搜索包含多个关键词的结果 | 搜索+ 引擎 |
搜索包含【搜索】和【引擎】两个词的页面 |
| 2 | OR |
或者 | 搜索OR 引擎 |
搜索包含【搜索】或【引擎】两个词的页面 |
| 3 | - |
减号,不包含减号后面词的页面 | 搜索引擎-百度 |
搜索不包括【百度】的【搜索引擎】的页面 |
| 4 | “” |
双引号,精确匹配 | “搜索引擎” | 精确匹配【搜索引擎】这个关键词的页面 |
| 5 | * |
星号,通配符,模糊搜索,星号代替某个字 | 搜*引擎 |
星号可以替代任何字 |
| 6 | @ |
在用于搜索社交媒体的字词前加上@ |
trump@twitter |
搜索trump的twitter |
| 7 | $ |
在数字前加上$搜索特定价格 |
camera$400 |
搜索价格为400$的camera |
| 8 | # |
搜索#标签 |
#throwbackthursday |
搜索标签throwbackthursday |
| 9 | .. |
两个点,在两个数字之间加上..执行数字范围搜索 |
camera 500..1000 |
搜索500到1000之间的camera |
| 10 | filetype |
搜索某一种文件类型的资源 | C++filetype:pdf |
搜索类型为pdf的C++网页资源 |
| 11 | site |
在指定站点搜索 | C++site:https://www.zhihu.com |
在知乎中搜索和C++相关的网页 |
| 12 | cache |
查看网站的Google缓存版本,显示缓存页面 | cache:weibo.com |
查看微博的谷歌快照 |
| 13 | info |
在网址前加info:,获取网站详情 |
info:github.com |
搜索github网站详情 |
| 14 | related |
搜索与某个网站有关联的页面 | related:sina.com |
搜索与新浪网站内容相似的其他网站 |
| 15 | link |
返回所有链接到某个URL地址的网页 | link:www.csdn.net |
搜索所有含指向【www.csdn.net】链接的网页 |
| 16 | inurl |
搜索查询词出现在URL中的页面 | inurl:搜索引擎 |
搜索链接URL中有【搜索引擎】的网页 |
| 17 | intitle |
搜索查询词出现在页面标题中的页面,支持中英文 | intitle:搜索引擎 |
搜索页面标题中有【搜索引擎】的网页 |
| 18 | intext |
搜索查询词出现在页面正文中的页面,支持中英文 | intext:SEO intext:搜索引擎 |
在正文包含【搜索引擎】的网页中搜索【SEO】 |
| 19 | inanchor |
搜索链接锚文字中包含搜索词的页面 | inanchor:前端 |
搜索链接锚文字中包含【前端】的页面 |
| 20 | allinurl |
页面URL中包含多个关键词的页面 | allinurl:SEO 搜索引擎优化 |
相当于:inurl:SEO inurl:搜索引擎优化 |
| 21 | allintitle |
页面标题中包含多个关键词的页面 | allintitle:SEO 搜索引擎优化 |
相当于:intitle:SEO intitle:搜索引擎优化 |
| 22 | allintext |
页面正文中包含多个关键词的页面 | allintext:SEO 搜索引擎优化 |
相当于:intext:SEO intext:搜索引擎优化 |
| 23 | allinanchor |
页面链接锚文字包含多个关键词的页面 | allinanchor:SEO 搜索引擎优化 |
相当于:inanchor:SEO inanchor:搜索引擎优化 |
| 24 | weather |
weather/time/sunrise/sundown+城市名,返回城市的天气/时间/日出时间/日落时间 |
weather:beijing |
显示北京的天气 |
| 25 | music |
或者用songs,歌手名字+music/songs |
周杰伦music |
返回周杰伦的各首歌曲 |
| 26 | imagesize |
限定图片尺寸—(在谷歌图片上搜索) | imagesize:2560x1440 |
有效搜索操作符
| 搜索操作符 | 功能 | 示例 |
|---|---|---|
" " |
搜索包含特定单词或短语的结果。 | “steve jobs” |
OR |
搜索与 X 或 Y 相关的结果。 | jobs OR gates |
| ` | ` | 与OR 功能相同。 |
AND |
搜索与 X 和 Y 相关的结果。 | jobs AND gates |
- |
搜索不包含特定单词或短语的结果。 | jobs -apple |
* |
通配符,匹配任何单词或短语。 | steve * apple |
( ) |
分组多个搜索条件。 | (ipad OR iphone) apple |
define: |
搜索词语或短语的定义。 | define:entrepreneur |
cache: |
查找网页的最新缓存。 | cache:apple.com |
filetype: |
搜索特定类型的文件(如 PDF)。 | apple filetype:pdf |
ext: |
与filetype: 功能相同。 |
apple ext:pdf |
site: |
搜索特定网站的结果。 | site:apple.com |
related: |
搜索与给定域相关的网站。 | related:apple.com |
intitle: |
搜索标题标签中包含特定单词的页面。 | intitle:apple |
allintitle: |
搜索标题标签中包含多个单词的页面。 | allintitle:apple iphone |
inurl: |
搜索 URL 中包含特定单词的页面。 | inurl:apple |
allinurl: |
搜索 URL 中包含多个单词的页面。 | allinurl:apple iphone |
intext: |
搜索内容中包含特定单词的页面。 | intext:apple iphone |
allintext: |
搜索内容中包含多个单词的页面。 | allintext:apple iphone |
weather: |
搜索特定位置的天气。 | weather:san francisco |
stocks: |
搜索股票信息。 | stocks:aapl |
map: |
强制谷歌显示地图结果。 | map:silicon valley |
movie: |
搜索关于电影的信息。 | movie:steve jobs |
in |
将一个单位转换为另一个单位。 | $329 in GBP |
source: |
从 Google News 中搜索特定来源的结果。 | apple source:the_verge |
before: |
搜索特定日期之前的结果。 | apple before:2007-06-29 |
after: |
搜索特定日期之后的结果。 | apple after:2007-06-29 |
不稳定的搜索操作符
| 搜索操作符 | 功能 | 示例 |
|---|---|---|
#..# |
在一系列数字范围内搜索。 | iphone case $50..$60 |
inanchor: |
搜索包含特定锚文本的后向链接的页面。 | inanchor:apple |
allinanchor: |
搜索包含多个词语的锚文本的后向链接的页面。 | allinanchor:apple iphone |
AROUND(X) |
搜索在 X 个词之间出现的两个词或短语的页面。 | apple AROUND(4) iphone |
loc: |
查找特定地区的结果。 | loc:”san francisco” apple |
location: |
在 Google News 中查找特定位置的新闻。 | location:”san francisco” apple |
daterange: |
搜索特定日期范围的结果。 | daterange:11278-13278 |
不再有效的搜索操作符(弃用)
以下搜索操作符不再有效,已被 Google 放弃:
| 搜索操作符 | 功能 | 示例 |
|---|---|---|
#..# |
在一系列数字范围内搜索。 | iphone case $50..$60 |
inanchor: |
搜索包含特定锚文本的后向链接的页面。 | inanchor:apple |
allinanchor: |
搜索包含多个词语的锚文本的后向链接的页面。 | allinanchor:apple iphone |
AROUND(X) |
搜索在 X 个词之间出现的两个词或短语的页面。 | apple AROUND(4) iphone |
loc: |
查找特定地区的结果。 | loc:”san francisco” apple |
location: |
在 Google News 中查找特定位置的新闻。 | location:”san francisco” apple |
daterange: |
搜索特定日期范围的结果。 | daterange:11278-13278 |