How to search for multiple file types in the search appliance

I want to search for several file types at the same time. For example, when I want to search for “.htm” files, I add “filetype: htm” to the query, and this works fine. Filetype: html also works the same way. However, how can I specify a query parameter that returns all htm AND html files?

+3
source share
3 answers

Query Prefix File: Filters the results to include only documents with the specified file extension. There are no spaces between the file type and the specified extension.

You can specify several file types by adding filetype: terms to the search query in conjunction with Boolean OR.

+5

QUERY filetype: html : htm

+2

, , !

filetype:doc OR filetype:pdf, .pdf .doc,

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

+2
source

Source: https://habr.com/ru/post/1702957/


All Articles