I'm trying to do a search for all torrent files and pdf files related to "secrets of the javascript ninja".

I can do them individually as shown:

"secrets of the javascript ninja" filetype:pdf (~6560 results)

"secrets of the javascript ninja" filetype:torrent (~146 results)

But how do we concatenate the results? In essense, I would like Google to display the union of the above two searches.

I've tried "secrets of the javascript ninja" filetype:(torrent or pdf) but it doesn't seem to be working. Is there a way to do union searches on Google?

1 Answer 1


From the little casting about I've done, it looks like you need to use OR between the filetype: operator if you want multiple filetypes.

"secrets of the javascript ninja" filetype:pdf OR filetype:torrent

My quick tests seem to jive. It's a little hard to verify, because there are so many more PDF results than Torrent results (for this particular case, at least).

  • I also did some casting around on this, and Google's performance seems odd. If I tred "secrets of the javascript ninja" filetype:pdf or filetype:torrent - I got no results. Ditto "secrets of the javascript ninja" filetype:pdf OR filetype:torrent (ie two spaces after an UpperCase OR). Jan 9, 2014 at 15:57
  • 3
    You need to uppercase that "OR" or Google considers it part of the search string.
    – ale
    Jan 9, 2014 at 16:00
  • @AlE., No idea why, but it Doesn't work. Try this: "Fundamentals of Telecommunication Networks" filetype:pdf OR filetype:torrent. Does it work for you?
    – Pacerier
    Mar 8, 2014 at 1:59
  • Hard to say. I only get one torrent result when I search for that.
    – ale
    Mar 8, 2014 at 2:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.