# How to return only PDF and Word files?

**URL:** <https://community.swiftype.com/t/how-to-return-only-pdf-and-word-files/655>\
**Category:** General\
**Created:** [April 5, 2018, 8:24pm UTC](https://community.swiftype.com/t/how-to-return-only-pdf-and-word-files/655 "2018-04-05T20:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yqz](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yqz](https://community.swiftype.com/u/yqz)\
**Post date:** [April 5, 2018, 8:24pm UTC](https://community.swiftype.com/t/how-to-return-only-pdf-and-word-files/655/1 "2018-04-05T20:24:10Z")

</div>

I have a search engine crawling the whole site. On some pages of the site, there are links to PDF or Word files.

How can I only get the PDF or Word files in my search results? Or can I do a faceted search for PDF and Word files?

---

<div class="post-metadata">

**Author:** ![smiller](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@smiller](https://community.swiftype.com/u/smiller)\
**Post date:** [April 5, 2018, 9:08pm UTC](https://community.swiftype.com/t/how-to-return-only-pdf-and-word-files/655/2 "2018-04-05T21:08:56Z")

</div>

Does the crawler currently index the PDF and Word files already, or are you also trying to figure out how to grab them?

---

<div class="post-metadata">

**Author:** ![yqz](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yqz](https://community.swiftype.com/u/yqz)\
**Post date:** [April 5, 2018, 9:22pm UTC](https://community.swiftype.com/t/how-to-return-only-pdf-and-word-files/655/3 "2018-04-05T21:22:22Z")

</div>

The crawler has indexed the files already. All the files’ url starts with /-/media/files.
