Google 编入索引的文件类型
Google 可以将大多数文本文件和某些已编码文档格式的内容编入索引。最常编入索引的文件类型包括:
- Adobe 便携式文档格式 (.pdf)
- Adobe PostScript (.ps)
- 以逗号分隔的值 (.csv)
- 电子出版物 (.epub)
- Google 地球(.kml、.kmz)
- GPS 交换格式 (.gpx)
- Hancom Hanword (.hwp)
- HTML(.htm、.html、其他文件扩展名)
- Microsoft Excel(.xls、.xlsx)
- Microsoft PowerPoint(.ppt、.pptx)
- Microsoft Word(.doc、.docx)
- OpenOffice 演示文稿 (.odp)
- OpenOffice 电子表格 (.ods)
- OpenOffice 文本文件 (.odt)
- 富文本格式 (.rtf)
- 可缩放矢量图形 (.svg)
- TeX/LaTeX (.tex)
-
文本文件(.txt、.text、其他文件扩展名),包括采用常用编程语言的源代码,例如:
- Basic 源代码 (.bas)
- C/C++ 源代码(.c、.cc、.cpp、.cxx、.h、.hpp)
- C# 源代码 (.cs)
- Java 源代码 (.java)
- Perl 源代码 (.pl)
- Python 源代码 (.py)
- 无线标记语言(.wml、.wap)
- XML (.xml)
Google 还可以将以下媒体格式的内容编入索引:
-
图片格式: BMP、GIF、JPEG、PNG、WebP 和 SVG
-
视频格式: 3GP、3G2、ASF、AVI、DivX、M2V、M3U、M3U8、M4V、MKV、MOV、MP4、MPEG、OGV、QVT、RAM、RM、VOB、WebM、WMV 和 XAP
按文件类型搜索
您可以在 Google 搜索中使用 filetype:
运算符,将搜索结果限制为特定文件类型或文件扩展名。例如,filetype:rtf galway
会搜索以 .rtf
结尾且内容包含“galway”一词的 RTF 文件和网址。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-17。
[null,null,["最后更新时间 (UTC):2025-02-17。"],[[["Google can index various file types, including text-based documents, presentations, spreadsheets, and source code files, for search results."],["Google supports indexing common media formats like images (BMP, GIF, JPEG, PNG, etc.) and videos (MP4, AVI, MOV, etc.)."],["Users can refine their Google searches by specifying a desired file type using the `filetype:` operator to narrow results."]]],["Google indexes various text-based files and encoded document formats, including PDFs, HTML, Microsoft Office files, and OpenOffice formats. It also indexes source code files (like .c, .java, .py), XML, and more. Media formats such as common image types (JPEG, PNG) and video types (MP4, AVI) are indexable. Users can search for specific file types using the `filetype:` operator, to filter results to those formats.\n"]]