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?
Asked
Active
Viewed 1.1k times
3 Answers
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.