How to Disable SharePoint Document Preview for Search Results
Question details
The user wants SharePoint search results to open documents in the native client application instead of the Office Online preview.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Clicking on document links directly from SharePoint search results, custom web parts, or homepage links.
- Observed behavior
- Documents open in the Office Online browser viewer despite the 'Open Documents in Client Applications by Default' feature being enabled at the library and site-collection levels.
Ensure you have site collection administrator privileges to review your document library settings and verify existing search configurations.
Acknowledge Limitations and Explore Custom Search Solutions
SharePoint Online does not have an out-of-the-box setting to disable browser previews for search results; custom development is required.
While you can configure document libraries to open files in client applications by default, this setting does not inherit to search results, web parts, or homepage links.
To modify this behavior globally across a site collection, you must implement custom development to change how search result links are generated.
Navigate to your Document Library, click the Settings gear, choose 'Library settings', and select 'Advanced settings'. Ensure 'Open in the client application' is selected. Note that this only applies to the library view itself.
Work with a development team to implement a custom Search Display Template (for classic sites) or customize the PnP Modern Search web part (for modern sites) to format URLs so they force client applications to open.
Since this is a known limitation, visit the official SharePoint feedback portal to submit a feature request for native control over search result link behavior.

Edit Downloaded SharePoint Documents with WPS Office
If you are frustrated by browser-based document previews in SharePoint, you can easily download your files and edit them locally with WPS Office. WPS Office is a highly compatible, free, and lightweight alternative to Microsoft Office.
- 1. Download your document: From the SharePoint search results or document library, click the three dots (More actions) next to the file and select 'Download'.
- 2. Install WPS Office: Download and install WPS Office for free on your Windows, Mac, or Linux desktop.
- 3. Open and edit locally: Double-click the downloaded file to instantly open and edit it in WPS Office's powerful desktop environment.

Frequently Asked Questions
Why do my SharePoint documents open in the browser instead of the desktop app?
SharePoint defaults to Office Online for quick document previews to improve performance and compatibility. While library settings can override this for direct library views, this override often bypasses search results and custom web parts.
Does the 'Open Documents in Client Applications by Default' feature apply to search?
No. This site collection feature only changes the default behavior for documents opened directly from document library list views. It does not affect links generated by the search engine or modern web parts.
Can I force all SharePoint links to open in the desktop app natively?
Without custom programmatic development, there is no out-of-the-box toggle in SharePoint Online to universally force every link across search and custom web parts to open in the desktop application.




