7

I want to search for multiple file types at once. For example, when I want to search for ".htm" files, I add "filetype:htm" to the query and that works fine. Similarly, "filetype:html" also works. However, how can I specify a query parameter that returns all htm AND html files?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52

3 Answers3

10

Be careful, with parenthesis, it doesn't work!

If your query is filetype:doc OR filetype:pdf you will have .pdf or .doc into you results,

but if you type (filetype:doc OR filetype:pdf) you will only have .doc file types!

Genjo
  • 371
  • 1
  • 5
  • 15
7

The query prefix filetype: filters the results to include only documents with the specified file extension. No spaces can come between filetype: and the specified extension.

You can specify multiple file types by adding filetype: terms to the search query, combined with the Boolean OR.

Search Protocol Reference

Genjo
  • 371
  • 1
  • 5
  • 15
euge1979
  • 779
  • 3
  • 9
4

QUERY filetype:html OR filetype:htm

roman m
  • 26,012
  • 31
  • 101
  • 133