Google Answers Logo
View Question
Q: Google search syntax ( Answered 4 out of 5 stars,   0 Comments )
Subject: Google search syntax
Category: Computers > Internet
Asked by: robbjacobs-ga
List Price: $5.00
Posted: 15 Jan 2004 18:39 PST
Expires: 14 Feb 2004 18:39 PST
Question ID: 296962
What is the correct syntax to search a known site for all files witha
specific extension?  I have tried the Advanced search and the synxax
built there does not seem to work (example:

Please check your answer by finding all .doc files on  I have a test file there.
Subject: Re: Google search syntax
Answered By: hailstorm-ga on 16 Jan 2004 16:43 PST
Rated:4 out of 5 stars

There are three Google operators, or special search commands, that you
can use to find specific documents within a specific site:

site: Placing this before a domain name, like,
will limit a search to only a specific site.

filetype: Placing this before a file extension, like filetype:doc,
will limit a search to only a specific filetype (in this case, Word
files for .doc)

inurl: If you make a search query with just site: and filetype: 
operators without a search string, you will not get results.  You can
get around this by using this operator, which search pages with only a
specific string of characters in the URL string.  Using inurl:doc (or
inurl: + the filetype you used in the previous operator for the
general case) in addition to the previous two operators will give you
a listing of all documents of a specific type on a specific site.

Using these tools, we will test by searching for all document files on
the IRS government site using this query: filetype:doc inurl:doc

This brings up the following results:

Unfortunately, a search on your site using these parameters: filetype:doc inurl:doc

Brings up no results.  But I believe this is because you have only
recently added your test file, and it has not yet been spidered and
indexed by Google.  When you can find this page in Google by searching
for it's full URL, you will also be able to find it using this method.

Sites referenced:

Google Operators

Filetype Operators
robbjacobs-ga rated this answer:4 out of 5 stars
Good andwer and easy to understand.  I didn't know that for the syntax
to work, Gogle had to have spidered the site - makes sense.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy