# Search Across Office and Document Files

Search a bounded folder or explicit file set across Word, Excel, PowerPoint, PDF, Markdown, email, and other Reader-supported formats.

Use Reader search when the question spans formats: find a policy term across reports, spreadsheets, presentations, PDFs, Markdown notes, and mail stores without writing one parser per file type.

## Bound the search

```powershell
$matches = Search-OfficeDocument -Path '.\Evidence' -Recurse `
    -Pattern 'Retention policy' -Extension docx,xlsx,pptx,pdf,md `
    -MaximumFiles 500 -MaximumResults 200 -ThrottleLimit 4
```

Document, result, store-item, and concurrency limits are safety and predictability controls. Set `-MaximumFiles`, `-MaximumResults`, or `-MaximumStoreItems` to `0` only when the input scope is already controlled. Extension filters are applied before files consume the document ceiling.

The [search-folder recipe](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Examples/Reader/Recipe-Reader-SearchFolder.ps1) searches a mixed `.\Documents` folder with one command and selects the useful result fields.

Use `-IncludePageLocations` when page-aware PDF or paged-document results matter. For downstream retrieval or indexing, continue with [chunks and tables](/docs/pswriteoffice/reader-chunks-tables/).

<!-- PowerForge markdown source sha256:EBC7C1D86BD4B21B34FED2643A9D78A40BFB17C80DCE0817F7767F243B648F4D; title=True -->

<!-- PowerForge markdown artifact sha256:1036EE0FF80705EAF26D03EA5CB718561162DFF2DB784C7569EFF4D2295E40DC -->
